diff --git a/Hadoop/ZKLT.Hadoop.API/docker-build.bat b/Hadoop/ZKLT.Hadoop.API/docker-build.bat index c4a6f06..38627c6 100644 --- a/Hadoop/ZKLT.Hadoop.API/docker-build.bat +++ b/Hadoop/ZKLT.Hadoop.API/docker-build.bat @@ -1 +1 @@ -docker build -f ./Dockerfile -t hadoop:1.0.3 ../../. \ No newline at end of file +docker build -f ./Dockerfile -t hadoop:1.0.5 ../../. \ No newline at end of file diff --git a/Hadoop/ZKLT.Hadoop/HadoopService.cs b/Hadoop/ZKLT.Hadoop/HadoopService.cs index 3cde3c4..64152ea 100644 --- a/Hadoop/ZKLT.Hadoop/HadoopService.cs +++ b/Hadoop/ZKLT.Hadoop/HadoopService.cs @@ -166,10 +166,21 @@ namespace ZKLT.Hadoop /// 是否成功 public bool InsertTable(HDP_Table table) { - if (_TableService.GetTable(table.Id) != null) + try { - throw new ArgumentNullException("表编号已存在"); + if (_TableService.GetTable(table.Id) != null) + { + throw new ArgumentNullException("表编号已存在"); + } + } + catch (ArgumentNullException e) + { + if (!e.Message.Contains("数据表不存在")) + { + throw; + } } + if (_TableService.InitStruct("", table)) { using (TransactionScope _scope = new TransactionScope())