PXF webapp is inaccessible but tomcat is up
生活随笔
收集整理的這篇文章主要介紹了
PXF webapp is inaccessible but tomcat is up
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
生產環境新增幾個節點,安裝pxf后,啟動時報錯
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發現找不到引用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/….下,查找從哪里引用了錯誤的路徑。發現 /etc/pxf/conf/下 pxf-private.classpath文件路徑正是報錯的路徑,修改替換掉問題解決。啟動PXF成功。
總結
以上是生活随笔為你收集整理的PXF webapp is inaccessible but tomcat is up的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java难学还是pythonnanxue
- 下一篇: Mybatis异常Invalid bou