Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-16188

beeline should block the connection if given invalid database name.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3.0, 3.0.0
    • Hive
    • None

    Description

      When using beeline shell to connect to HS2 or impalaD as below -

      Connection to HS2 using beeline tool on port 10000 -
      beeline -u "jdbc:hive2://HS2-host-name:10000/default;principal=hive/HS2-host-name@DOMAIN.EXAMPLE.COM"

      Connection to ImpalaD using beeline tool on port 21050 -
      beeline -u "jdbc:hive2://impalad-host-name.com:21050/XXX;principal=impala/impalad-host-name.com@DOMAIN.EXAMPLE.COM"

      Providing a invalid database name as XXX - the connection is made.
      It should ideally stop the connection to be successfull.
      Even though, the beeline tool does not allow to move forward, unless you provide a valid DB name, like
      Use <Database-Name>;

      Attachments

        1. HIVE-16188.2.patch
          4 kB
          Sahil Takiar
        2. HIVE-16188.1.patch
          0.9 kB
          Sahil Takiar

        Activity

          People

            stakiar Sahil Takiar
            pavasgarg Pavas Garg
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: