日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 编程资源 > 编程问答 >内容正文

编程问答

PXF webapp is inaccessible but tomcat is up

發(fā)布時(shí)間:2025/3/15 编程问答 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 PXF webapp is inaccessible but tomcat is up 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

生產(chǎn)環(huán)境新增幾個(gè)節(jié)點(diǎn),安裝pxf后,啟動(dòng)時(shí)報(bào)錯(cuò)

stderr: Traceback (most recent call last):File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py", line 120, in <module>Pxf().execute()File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in executemethod(env)File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py", line 53, in startself.__execute_service_command("restart")File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py", line 71, in __execute_service_commandlogoutput=True)File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__self.env.run()File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in runself.run_action(resource, action)File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_actionprovider_action()File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 238, in action_runtries=self.resource.tries, try_sleep=self.resource.try_sleep)File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in innerresult = function(command, **kwargs)File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_calltries=tries, try_sleep=try_sleep)File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapperresult = _call(command, **kwargs_copy)File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _callraise Fail(err_msg) resource_management.core.exceptions.Fail: Execution of 'service pxf-service restart' returned 1. /var/pxf / $CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted. /var/pxf /var/pxf / Tomcat started. /var/pxf / Checking if tomcat is up and running... tomcat not responding, re-trying after 1 second (attempt number 1) tomcat not responding, re-trying after 1 second (attempt number 2) Checking if PXF webapp is up and running... ERROR: PXF webapp is inaccessible but tomcat is up. Check logs for more information

解決方案,查看catalina.log發(fā)現(xiàn)找不到引用Jar包

Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Failed to load entry /usr/phd/current/hadoop-hdfs-client/hadoop-hdfs.jar: java.nio.file.NoSuchFileException: /usr/phd/current/hadoop-hdfs-client Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Entry /usr/phd/current/hadoop-hdfs-client/hadoop-hdfs.jar doesn't match any files Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Failed to load entry /usr/phd/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core.jar: java.nio.file.NoSuchFileException: /usr/phd/current/hadoop-mapreduce-client Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Entry /usr/phd/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core.jar doesn't match any files Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Failed to load entry /usr/phd/current/hadoop-client/hadoop-auth.jar: java.nio.file.NoSuchFileException: /usr/phd/current/hadoop-client Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Entry /usr/phd/current/hadoop-client/hadoop-auth.jar doesn't match any files Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Failed to load entry /usr/phd/current/hadoop-client/hadoop-common.jar: java.nio.file.NoSuchFileException: /usr/phd/current/hadoop-client Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Entry /usr/phd/current/hadoop-client/hadoop-common.jar doesn't match any files Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Failed to load entry /usr/phd/current/hadoop-client/lib/asm-*[0-9].jar: java.nio.file.NoSuchFileException: /usr/phd/current/hadoop-client/lib Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories WARNING: Entry /usr/phd/current/hadoop-client/lib/asm-*[0-9].jar doesn't match any files

明明jar包位置是在/usr/hdp/current/….下,查找從哪里引用了錯(cuò)誤的路徑。發(fā)現(xiàn) /etc/pxf/conf/下 pxf-private.classpath文件路徑正是報(bào)錯(cuò)的路徑,修改替換掉問題解決。啟動(dòng)PXF成功。

總結(jié)

以上是生活随笔為你收集整理的PXF webapp is inaccessible but tomcat is up的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。