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

Cannot run the "hbase shell" command on Windows

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 0.99.2
    • None
    • shell
    • None
    • Windows 8.1

    Description

      I've just downloaded and unzipped hbase 0.99.2 and tried to run this command:

      C:\hbase-0.99.2\bin>hbase shell
      Invalid maximum heap size: -Xmx1000m "
      Error: Could not create the Java Virtual Machine.
      Error: A fatal exception has occurred. Program will exit.
      

      The command is documented here:
      http://hbase.apache.org/book.html#_get_started_with_hbase

      The problem is in hbase.cmd on line 296

      set HEAP_SETTINGS="%JAVA_HEAP_MAX% %JAVA_OFFHEAP_MAX%"
      

      The quotes should be stripped:

      set HEAP_SETTINGS=%JAVA_HEAP_MAX% %JAVA_OFFHEAP_MAX%
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            lukas.eder Lukas Eder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: