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

Beeline-site parser does not handle the variable substitution correctly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Resolved
    • 4.0.0
    • 4.0.0-alpha-2
    • Beeline
    • None
    • Hive-4.0.0

    Description

      beeline-site.xml

      <configuration xmlns:xi="http://www.w3.org/2001/XInclude">
       
       <property>
       <name>beeline.hs2.jdbc.url.container</name>
       <value>jdbc:hive2://c3220-node2.host.com:2181,c3220-node3.host.com:2181,c3220-node4.host.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2</value>
       </property>
       
       <property>
       <name>beeline.hs2.jdbc.url.default</name>
       <value>test</value>
       </property>
       <property>
      <name>beeline.hs2.jdbc.url.test</name>
      <value>${beeline.hs2.jdbc.url.container}?tez.queue.name=myqueue</value>
      </property> 
       <property>
       <name>beeline.hs2.jdbc.url.llap</name>
       <value>jdbc:hive2://c3220-node2.host.com:2181,c3220-node3.host.com:2181,c3220-node4.host.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2-interactive</value>
       </property>
       
       </configuration>

      beeline fail to connect because it does not parse the substituted value correctly

      beeline
      Error in parsing jdbc url: ${beeline.hs2.jdbc.url.container}?tez.queue.name=myqueue from beeline-site.xml
      beeline>  

      Attachments

        1. HIVE-22317.patch
          1 kB
          Rajkumar Singh
        2. HIVE-22317.02.patch
          4 kB
          mahesh kumar behera
        3. HIVE-22317.01.patch
          4 kB
          Rajkumar Singh

        Issue Links

          Activity

            People

              Rajkumar Singh Rajkumar Singh
              Rajkumar Singh Rajkumar Singh
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: