配置单元插入查询失败,错误返回码-101

时间:2018-11-13 19:17:12

标签: hadoop hive mapreduce hiveql apache-tez

我正在尝试运行一个简单的插入语句,如下所示:

never mind, got the answer.. added some more lines to code to make it work
$Getjsonfilecontent | ConvertTo-Json -Depth 100 | Out-File $Updatedleafjsonpath -Force
     # Remove unwanted Pattern
    $ReplacePatterns = @{
    "\\u003c" = "<"
    "\\u003e" = ">"
    "\\u0027" = "'"
    }
    $InputJson = Get-Content -Path $Getjsonfilecontent | Out-String
    foreach ($Pattern in $ReplacePatterns.GetEnumerator())
    {
        $InputJson = $InputJson -replace $Pattern.Key, $Pattern.Value
    }
    $InputJson | Out-File -FilePath $Updatedleafjsonpath

然后失败,并显示以下错误:

INFO:从/apps/hive/warehouse/dtc.db/bwc_test/.hive-staging_hive_2018-11-13_19-10-37_084_8697431764330812894-1/-ext-将数据加载到表dtc.bwc_test分区(call_date = null) 10000

insert into table `bwc_test` partition(call_date)
select * from
`bwc_master`; 

bwc_master的表定义:

Error: Error while processing statement: FAILED: Execution Error, return code -101 from org.apache.hadoop.hive.ql.exec.MoveTask. HIVE_LOAD_DYNAMIC_PARTITIONS_THREAD_COUNT (state=08S01,code=-101)

有人可以帮我调试这个吗?我没有在日志中找到任何东西。

1 个答案:

答案 0 :(得分:0)

您错过了bwc_test之前的“表格”

insert into  table `bwc_test` partition(call_date)
select * from
`bwc_master`;