gpt4 book ai didi

bigdata - Yarn 上的 Oracle PGX - Web 服务上的 404

转载 作者:行者123 更新时间:2023-12-02 13:57:58 29 4
gpt4 key购买 nike

我在 Oracle BDA X7-2 上运行 Yarn,规范:

  • Cloudera 企业版 5.14.3
  • Java 1.8.0_171
  • PGX 2.7.1

我正在尝试按照本手册在 Yarn 上运行 PGX: https://docs.oracle.com/cd/E56133_01/2.5.0/tutorials/yarn.html

设法运行安装脚本,完成其提供的配置文件,内容如下:

{
"pgx_yarn_jar_hdfs_path": "hdfs:/user/pgx/pgx-yarn-2.7.1.jar",
"pgx_war_hdfs_path": "hdfs:/user/pgx/pgx-webapp-2.7.1.war",
"pgx_conf_hdfs_path": "hdfs:/user/pgx/pgx.conf",
"pgx_log4j_conf_hdfs_path": "hdfs:/user/pgx/log4j2.xml",
"pgx_dist_log4j_conf_hdfs_path": "hdfs:/user/pgx/dist_log4j.xml",
"pgx_cluster_host_hdfs_path": "hdfs:/user/pgx/cluster-host.tgz",
"zookeeper_connect_string": "bda1node05,bda1node06,bda1node07",
"standard_library_path": "/usr/lib64/gcc/4.8.2",
"min_heap_size": "512m",
"max_heap_size": "12g",
"container_cores": 9,
"container_memory": 0,
"container_priority": 0,
"num_machines": 1
}

Yarn 有一个处于 RUNNING 状态的 pgx-service 应用程序,stderr 中没有错误,日志显示该服务正在以下地址运行:

http://bda1node06:7007

Linux Java 进程正在使用以下命令运行:

/usr/java/default/bin/java -Xms512m -Xmx12g oracle.pgx.yarn.PgxService bda1node06/u11/hadoop/yarn/nm/usercache/root/appcache/application_1539869144089_2070/container_e22_1539869144089_2070_0 1_000002/pgx-服务器.war 7007 bda1node05、bda1node06、bda1node07/pgx-8eef44e2-1657-403a-8193-0102f5266680

执行 PGX 客户端以进行测试后:

$PGX_HOME/bin/pgx --base_url http://bda1node06:7007

我得到:

java.util.concurrent.ExecutionException: java.lang.IllegalStateException: cannot connect to server; requested http://bda1node06:7007/version?extendedInfo=true and expected status 200, got 404 instead; response body = ""
at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:357)
at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1895)
at oracle.pgx.api.PgxFuture.get(PgxFuture.java:99)
at oracle.pgx.api.ServerInstance.createSession(ServerInstance.java:559)
at oracle.pgx.shell.Console.initSession(Console.java:280)
at oracle.pgx.shell.Console.(Console.java:153)
at oracle.pgx.shell.Console.main(Console.java:296)
Caused by: java.lang.IllegalStateException: cannot connect to server; requested http://bda1node06:7007/version?extendedInfo=true and expected status 200, got 404 instead; response body = ""
at oracle.pgx.api.ClientApiProvider.lambda$versionCheck$2(ClientApiProvider.java:189)
at oracle.pgx.client.RemoteUtils.lambda$asyncRequest$5(RemoteUtils.java:278)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

我不知道如何调试和检查连接 URL 中是否需要任何额外路径。

我如何进行调试?

提前致谢!

最佳答案

默认情况下,PGX 的基本路径为 /pgx,这意味着您应该按如下方式连接:

$PGX_HOME/bin/pgx --base_url http://bda1node06:7007/pgx

关于bigdata - Yarn 上的 Oracle PGX - Web 服务上的 404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53284215/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com