Presto:无法插入值

时间:2018-01-04 09:26:58

标签: hadoop presto

我可以在Presto中创建和删除表并进行正常查询,但是当我使用insert时,它总是错误的,如下所示:

presto:default> create table test.lll (a int);
CREATE TABLE
presto:default> insert into test.lll select 1;

Query 20180104_091933_00007_k8e78, FAILED, 5 nodes
Splits: 84 total, 30 done (35.71%)
0:00 [0 rows, 0B] [0 rows/s, 0B/s]

Query 20180104_091933_00007_k8e78 failed: No page sink provider for connector 'hive'

是什么原因以及如何解决?任何帮助表示赞赏。

Error TypeINTERNAL_ERROR

Error CodeGENERIC_INTERNAL_ERROR (65536)

完整堆栈跟踪:

java.lang.IllegalArgumentException: No page sink provider for connector 'hive'
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:191)
    at com.facebook.presto.split.PageSinkManager.providerFor(PageSinkManager.java:67)
    at com.facebook.presto.split.PageSinkManager.createPageSink(PageSinkManager.java:61)
    at com.facebook.presto.operator.TableWriterOperator$TableWriterOperatorFactory.createPageSink(TableWriterOperator.java:97)
    at com.facebook.presto.operator.TableWriterOperator$TableWriterOperatorFactory.createOperator(TableWriterOperator.java:88)
    at com.facebook.presto.operator.DriverFactory.createDriver(DriverFactory.java:92)
    at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunnerFactory.createDriver(SqlTaskExecution.java:515)
    at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunnerFactory.access$1400(SqlTaskExecution.java:490)
    at com.facebook.presto.execution.SqlTaskExecution$DriverSplitRunner.processFor(SqlTaskExecution.java:616)
    at com.facebook.presto.execution.executor.PrioritizedSplitRunner.process(PrioritizedSplitRunner.java:163)
    at com.facebook.presto.execution.executor.LegacyPrioritizedSplitRunner.process(LegacyPrioritizedSplitRunner.java:23)
    at com.facebook.presto.execution.executor.TaskExecutor$TaskRunner.run(TaskExecutor.java:492)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)`

0 个答案:

没有答案