Hive
  1. Hive
  2. HIVE-2139

Enables HiveServer to accept -hiveconf option

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: CLI
    • Labels:
      None
    • Environment:

      Linux + CDH3u0 (Hive 0.7.0+27.1-2~lucid-cdh3)

    • Hadoop Flags:
      Reviewed

      Description

      Currently, I'm trying to test HiveHBaseIntegration on HiveServer. But it doesn't seem to accept -hiveconf command.

      hive --service hiveserver -hiveconf hbase.zookeeper.quorum=hdp0,hdp1,hdp2
      Starting Hive Thrift Server
      java.lang.NumberFormatException: For input string: "-hiveconf"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
              at java.lang.Integer.parseInt(Integer.java:449)
              at java.lang.Integer.parseInt(Integer.java:499)
              at org.apache.hadoop.hive.service.HiveServer.main(HiveServer.java:382)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:186)
      

      Therefore, you need to throw the query like "set hbase.zookeeper.quorum=hdp0,hdp1,hdp2" everytime. It's not convenient for separating the configuration between server-side and client-side.

      1. HIVE-2139.patch
        15 kB
        Patrick Hunt
      2. HIVE-2139.patch
        32 kB
        Patrick Hunt
      3. HIVE-2139.patch
        32 kB
        Patrick Hunt

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Patrick Hunt
            Reporter:
            Kazuki Ohta
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development