PXF webapp is inaccessible but tomcat is up

以你之姓@ 2022-06-14 11:47 185阅读 0赞

生产环境新增几个节点,安装pxf后,启动时报错

  1. stderr:
  2. Traceback (most recent call last):
  3. File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py", line 120, in <module>
  4. Pxf().execute()
  5. File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
  6. method(env)
  7. File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py", line 53, in start
  8. self.__execute_service_command("restart")
  9. File "/var/lib/ambari-agent/cache/common-services/PXF/3.0.0/package/scripts/pxf.py", line 71, in __execute_service_command
  10. logoutput=True)
  11. File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 154, in __init__
  12. self.env.run()
  13. File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 160, in run
  14. self.run_action(resource, action)
  15. File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 124, in run_action
  16. provider_action()
  17. File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 238, in action_run
  18. tries=self.resource.tries, try_sleep=self.resource.try_sleep)
  19. File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
  20. result = function(command, **kwargs)
  21. File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
  22. tries=tries, try_sleep=try_sleep)
  23. File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
  24. result = _call(command, **kwargs_copy)
  25. File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
  26. raise Fail(err_msg)
  27. resource_management.core.exceptions.Fail: Execution of 'service pxf-service restart' returned 1. /var/pxf /
  28. $CATALINA_PID was set but the specified file does not exist. Is Tomcat running? Stop aborted.
  29. /var/pxf /var/pxf /
  30. Tomcat started.
  31. /var/pxf /
  32. Checking if tomcat is up and running...
  33. tomcat not responding, re-trying after 1 second (attempt number 1)
  34. tomcat not responding, re-trying after 1 second (attempt number 2)
  35. Checking if PXF webapp is up and running...
  36. ERROR: PXF webapp is inaccessible but tomcat is up. Check logs for more information

解决方案,查看catalina.log发现找不到引用Jar包

  1. Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories
  2. WARNING: Failed to load entry /usr/phd/current/hadoop-hdfs-client/hadoop-hdfs.jar: java.nio.file.NoSuchFileException: /usr/phd/current/hadoop-hdfs-client
  3. Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories
  4. WARNING: Entry /usr/phd/current/hadoop-hdfs-client/hadoop-hdfs.jar doesn't match any files
  5. Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories
  6. 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
  7. Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories
  8. WARNING: Entry /usr/phd/current/hadoop-mapreduce-client/hadoop-mapreduce-client-core.jar doesn't match any files
  9. Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories
  10. WARNING: Failed to load entry /usr/phd/current/hadoop-client/hadoop-auth.jar: java.nio.file.NoSuchFileException: /usr/phd/current/hadoop-client
  11. Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories
  12. WARNING: Entry /usr/phd/current/hadoop-client/hadoop-auth.jar doesn't match any files
  13. Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories
  14. WARNING: Failed to load entry /usr/phd/current/hadoop-client/hadoop-common.jar: java.nio.file.NoSuchFileException: /usr/phd/current/hadoop-client
  15. Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories
  16. WARNING: Entry /usr/phd/current/hadoop-client/hadoop-common.jar doesn't match any files
  17. Jun 19, 2017 1:01:26 PM org.apache.hawq.pxf.service.utilities.CustomWebappLoader addRepositories
  18. 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成功。

发表评论

表情:
评论列表 (有 0 条评论,185人围观)

还没有评论,来说两句吧...

相关阅读