我试图让presto在clouderavm上工作(在用普通hadoop和amazon运行它失败之后)。基本上我在同一个节点上拥有所有的东西(协调器、发现、工作者)。我按照docs中的说明操作,在运行select查询时出现如下错误。我在另一篇文章中生成了用于节点id的uuid,但仍然是相同的问题。有人能帮忙吗。
java.lang.IllegalStateException: No nodes available to run query
at com.google.common.base.Preconditions.checkState(Preconditions.java:150) ~[guava-15.0.jar:na]
at com.facebook.presto.execution.NodeScheduler$NodeSelector.selectNode(NodeScheduler.java:166) ~[presto-main-0.52.jar:0.52]
at com.facebook.presto.execution.SqlStageExecution.chooseNode(SqlStageExecution.java:531) [presto-main-0.52.jar:0.52]
at com.facebook.presto.execution.SqlStageExecution.startTasks(SqlStageExecution.java:467) [presto-main-0.52.jar:0.52]
at com.facebook.presto.execution.SqlStageExecution.access$300(SqlStageExecution.java:80) [presto-main-0.52.jar:0.52]
at com.facebook.presto.execution.SqlStageExecution$5.run(SqlStageExecution.java:435) [presto-main-0.52.jar:0.52]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.7.0_45]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) [na:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [na:1.7.0_45]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45]
at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]
1条答案
按热度按时间zmeyuzjn1#
以下是在cloudera vm 4.3.0 virtualbox映像上对我有效的配置:
等/节点属性
etc/config.properties属性
etc/目录/hive.properties
etc/catalog/jmx.properties文件
etc/jvm.config文件
clouderavm附带jdk6,presto需要jdk7,安装jdk7。不要使用rpm安装,它将删除jdk6并且可能会影响其他服务。我假设presto安装在/opt/presto中,这个目录(连同/var/presto)由cloudera:cloudera. 启动presto服务器:
像客户端一样运行命令: