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

HiveServer2 does not install/start when running w/o sudo

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.0.0
    • 2.0.1, 2.1.0
    • None
    • None

    Description

      0) No sudo is available in env
      1) HDP 2.2 cluster with hdfs, yarn, tez, zk, ams
      2) enable kerb
      3) Via Add Service, add Hive. You get the following error:

      2015-03-15 23:45:04,329 - Error while executing command 'start':
      Traceback (most recent call last):
      File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 208, in execute
      method(env)
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_server.py", line 61, in start
      rolling_restart=rolling_restart )
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py", line 44, in hive_service
      check_fs_root()
      File "/var/lib/ambari-agent/cache/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py", line 147, in check_fs_root
      user=params.hive_user)
      File "/usr/lib/python2.6/site-packages/resource_management/core/base.py", line 148, in _init_
      self.env.run()
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 152, in run
      self.run_action(resource, action)
      File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action
      provider_action()
      File "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py", line 276, in action_run
      raise ex
      Fail: Execution of 'hive --config /etc/hive/conf.server --service metatool -updateLocation hdfs://hdp2poc/apps/hive/warehouse su: warning: cannot change directory to /home/hive: No such file or directory
      hdfs://hdp2poc/apps/hive/warehouse
      ' returned 127. su: warning: cannot change directory to /home/hive: No such file or directory
      Initializing HiveMetaTool..
      Exception in thread "main" java.lang.IllegalArgumentException: java.net.URISyntaxException: Expected scheme-specific part at index 3: su:
      at org.apache.hadoop.fs.Path.initialize(Path.java:206)
      at org.apache.hadoop.fs.Path.<init>(Path.java:172)
      at org.apache.hadoop.hive.metastore.tools.HiveMetaTool.main(HiveMetaTool.java:423)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:606)
      at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
      at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
      Caused by: java.net.URISyntaxException: Expected scheme-specific part at index 3: su:
      at java.net.URI$Parser.fail(URI.java:2829)
      at java.net.URI$Parser.failExpecting(URI.java:2835)
      at java.net.URI$Parser.parse(URI.java:3038)
      at java.net.URI.<init>(URI.java:753)
      at org.apache.hadoop.fs.Path.initialize(Path.java:203)
      ... 8 more
      -bash: line 1: hdfs://hdp2poc/apps/hive/warehouse
      : No such file or directory

      Attachments

        Issue Links

          Activity

            People

              aonishuk Andrew Onischuk
              aonishuk Andrew Onischuk
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: