Uploaded image for project: 'Kylin'
  1. Kylin
  2. KYLIN-3801

find-hive-dependency.sh fail to grep env:CLASSPATH from beeline output

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: v2.6.0
    • Fix Version/s: v2.6.1
    • Component/s: Tools, Build and Test
    • Labels:
      None

      Description

      In a Debian stretch system with GNU grep version 2.27, whenever bin/find-hive-dependency.sh is executed, with beeline enabled, the following error message is produced:

      Retrieving hive dependency...
      ./find-hive-dependency.sh: line 40: [: too many arguments
      Couldn't find hive configuration directory. Please set HIVE_CONF to the path which contains hive-site.xml.

      In line 34, output format of beeline is defined as dsv, which is something that grep thinks is binary data - although it's text - and it leads to

      hive_env='Binary file (standard input) matches'

      instead of correct env:CLASSPATH grepping, which causes the above error. One solution would be to set the flag '-text' of grep to force processing beeline output as text.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                nikniknik Nikodimos Nikolaidis
                Reporter:
                nikniknik Nikodimos Nikolaidis
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: