Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21567

Allow overriding configs starting up the shell

    XMLWordPrintableJSON

    Details

    • Hadoop Flags:
      Reviewed
    • Release Note:
      Hide
      Allow passing of -Dkey=value option to shell to override hbase-* configuration: e.g.:

      $ ./bin/hbase shell -Dhbase.zookeeper.quorum=ZK0.remote.cluster.example.org,ZK1.remote.cluster.example.org,ZK2.remote.cluster.example.org -Draining=false
      ...
      hbase(main):001:0> @shell.hbase.configuration.get("hbase.zookeeper.quorum")
      => "ZK0.remote.cluster.example.org,ZK1.remote.cluster.example.org,ZK2.remote.cluster.example.org"
      hbase(main):002:0> @shell.hbase.configuration.get("raining")
      => "false"
      Show
      Allow passing of -Dkey=value option to shell to override hbase-* configuration: e.g.: $ ./bin/hbase shell -Dhbase.zookeeper.quorum=ZK0.remote.cluster.example.org,ZK1.remote.cluster.example.org,ZK2.remote.cluster.example.org -Draining=false ... hbase(main):001:0> @shell.hbase.configuration.get("hbase.zookeeper.quorum") => "ZK0.remote.cluster.example.org,ZK1.remote.cluster.example.org,ZK2.remote.cluster.example.org" hbase(main):002:0> @shell.hbase.configuration.get("raining") => "false"

      Description

      Needed to be able to point a local install at a remote cluster. I wanted to be able to do this:

      ${HBASE_HOME}/bin/hbase shell -Dhbase.zookeeper.quorum=ZK0.remote.cluster.example.org,ZK1.remote.cluster.example.org,ZK2.remote.cluster.example.org

        Attachments

        1. HBASE-21567.master.003.patch
          4 kB
          Michael Stack
        2. HBASE-21567.master.002.patch
          4 kB
          Michael Stack
        3. HBASE-21567.master.001.patch
          3 kB
          Michael Stack

          Issue Links

            Activity

              People

              • Assignee:
                stack Michael Stack
                Reporter:
                stack Michael Stack
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: