没有可用于查询错误的节点



我正在尝试使Presto在Cloudera VM上运行(在无法使用普通Hadoop和Amazon运行它之后)。基本上,我将所有内容(协调器,发现,工作线程)都放在同一个节点上。我按照文档中的说明进行操作,在运行选择查询时出现如下错误。我为每个帖子生成了用于节点 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]
以下是在

Cloudera VM 4.3.0 VirtualBox映像上为我工作的配置:

etc/node.properties

node.environment=production
node.id=FA7BA366-0253-43CA-99DE-32DD4AC11C88
node.data-dir=/var/presto/data

etc/config.properties

coordinator=true
datasources=jmx,hive
http-server.http.port=8080
presto-metastore.db.type=h2
presto-metastore.db.filename=var/db/MetaStore
task.max-memory=1GB
discovery-server.enabled=true
discovery.uri=http://localhost:8080

etc/catalog/hive.properties

connector.name=hive-cdh4
hive.metastore.uri=thrift://localhost:9083

etc/catalog/jmx.properties

connector.name=jmx

etc/jvm.config

-server
-Xmx2G
-XX:+UseConcMarkSweepGC
-XX:+ExplicitGCInvokesConcurrent
-XX:+CMSClassUnloadingEnabled
-XX:+AggressiveOpts
-XX:+HeapDumpOnOutOfMemoryError
-XX:OnOutOfMemoryError=kill -9 %p
-XX:PermSize=150M
-XX:MaxPermSize=150M
-XX:ReservedCodeCacheSize=150M
-Xbootclasspath/p:/opt/presto/lib/floatingdecimal-0.1.jar

Cloudera VM 自带 jdk 6,Presto 需要 jdk 7,安装 jdk7。不要使用 rpm 安装,它会删除 jdk6,并且可能会影响其他服务。我假设presto安装在/opt/presto中,这个目录(连同/var/presto)归cloudera:cloudera所有。启动Presto服务器:

PATH=/usr/java/jdk1.7.0_45/bin:$PATH /opt/presto/bin/launcher run

像客户端一样运行命令:

PATH=/usr/java/jdk1.7.0_45/bin:$PATH ./presto-cli-0.52-executable.jar --server localhost:8080 --catalog hive --schema default

相关内容

  • 没有找到相关文章

最新更新