Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-24470

HDP 3.0 Livy2-Server fails to start

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.7.0
    • 2.7.1
    • None

    Description

      Traceback (most recent call last):
        File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SPARK2/package/scripts/livy2_server.py", line 148, in <module>
          LivyServer().execute()
        File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 353, in execute
          method(env)
        File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SPARK2/package/scripts/livy2_server.py", line 62, in start
          self.configure(env)
        File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SPARK2/package/scripts/livy2_server.py", line 52, in configure
          setup_livy(env, 'server', upgrade_type=upgrade_type, action = 'config')
        File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/SPARK2/package/scripts/setup_livy2.py", line 52, in setup_livy
          params.HdfsResource(None, action="execute")
        File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
          self.env.run()
        File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
          self.run_action(resource, action)
        File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
          provider_action()
        File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 663, in action_execute
          self.get_hdfs_resource_executor().action_execute(self)
        File "/usr/lib/ambari-agent/lib/resource_management/libraries/providers/hdfs_resource.py", line 159, in action_execute
          logoutput=logoutput,
        File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
          self.env.run()
        File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
          self.run_action(resource, action)
        File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
          provider_action()
        File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 263, in action_run
          returns=self.resource.returns)
        File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 72, in inner
          result = function(command, **kwargs)
        File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 102, in checked_call
          tries=tries, try_sleep=try_sleep, timeout_kill_strategy=timeout_kill_strategy, returns=returns)
        File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 150, in _call_wrapper
          result = _call(command, **kwargs_copy)
        File "/usr/lib/ambari-agent/lib/resource_management/core/shell.py", line 314, in _call
          raise ExecutionFailed(err_msg, code, out, err)
      resource_management.core.exceptions.ExecutionFailed: Execution of 'hadoop --config /usr/hdp/3.0.1.0-65/hadoop/conf jar /var/lib/ambari-agent/lib/fast-hdfs-resource.jar /var/lib/ambari-agent/tmp/hdfs_resources_1533930112.17.json' returned 1. Initializing filesystem uri: hdfs://mycluster
      Creating: Resource [source=null, target=zk0-host:2181,zk1-host:2181,zk2-host:2181, type=directory, action=create, owner=livy, group=null, mode=700, recursiveChown=false, recursiveChmod=false, changePermissionforParents=false, manageIfExists=true] in hdfs://mycluster
      Exception occurred, Reason: java.net.URISyntaxException: Relative path in absolute URI: zk0-host:2181,zk1-host:2181,zk2-host:2181
      java.lang.IllegalArgumentException: java.net.URISyntaxException: Relative path in absolute URI: zk0-host:2181,zk1-host:2181,zk2-host:2181
      	at org.apache.hadoop.fs.Path.initialize(Path.java:259)
      	at org.apache.hadoop.fs.Path.<init>(Path.java:217)
      	at org.apache.ambari.fast_hdfs_resource.Resource.checkResourceParameters(Resource.java:193)
      	at org.apache.ambari.fast_hdfs_resource.Runner.main(Runner.java:112)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.apache.hadoop.util.RunJar.run(RunJar.java:318)
      	at org.apache.hadoop.util.RunJar.main(RunJar.java:232)
      Caused by: java.net.URISyntaxException: Relative path in absolute URI: zk0-host:2181,zk1-host:2181,zk2-host:2181
      	at java.net.URI.checkPath(URI.java:1823)
      	at java.net.URI.<init>(URI.java:745)
      	at org.apache.hadoop.fs.Path.initialize(Path.java:256)
      	... 9 more
      Traceback (most recent call last):
      

      Attachments

        Issue Links

          Activity

            People

              avijayan Aravindan Vijayan
              avijayan Aravindan Vijayan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h