Uploaded image for project: 'HCatalog'
  1. HCatalog
  2. HCATALOG-234

bin/hcat need to add hbase-site.xml in classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3
    • 0.3
    • storage handlers
    • None

    Description

      Just like HCATALOG-226, we also need to add hbase config when we are doing DDL command, otherwise DDL command will fail complaining zookeeper settings. Manually add zookeeper entries into core-site.xml make my test pass. Here is a reference stack:
      at org.apache.hadoop.hive.ql.metadata.Hive.createTable(Hive.java:546)
      at org.apache.hadoop.hive.ql.exec.DDLTask.createTable(DDLTask.java:3479)
      at org.apache.hadoop.hive.ql.exec.DDLTask.execute(DDLTask.java:225)
      at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:133)
      at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:57)
      at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1332)
      at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1123)
      at org.apache.hadoop.hive.ql.Driver.run(Driver.java:931)
      at org.apache.hcatalog.cli.HCatDriver.run(HCatDriver.java:42)
      at org.apache.hcatalog.cli.HCatCli.processCmd(HCatCli.java:230)
      at org.apache.hcatalog.cli.HCatCli.processLine(HCatCli.java:186)
      at org.apache.hcatalog.cli.HCatCli.processFile(HCatCli.java:205)
      at org.apache.hcatalog.cli.HCatCli.main(HCatCli.java:155)
      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:156)

      Attachments

        1. HCATALOG-234-1.patch
          0.4 kB
          Daniel Dai
        2. HCATALOG-234-2.patch
          0.5 kB
          Daniel Dai

        Activity

          People

            toffer Francis Christopher Liu
            daijy Daniel Dai
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: