You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Nikodimos Nikolaidis (JIRA)" <ji...@apache.org> on 2019/01/31 15:37:00 UTC
[jira] [Updated] (KYLIN-3801) find-hive-dependency.sh fail to grep
env:CLASSPATH from beeline output
[ https://issues.apache.org/jira/browse/KYLIN-3801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Nikodimos Nikolaidis updated KYLIN-3801:
----------------------------------------
Affects Version/s: v2.6.0
> find-hive-dependency.sh fail to grep env:CLASSPATH from beeline output
> ----------------------------------------------------------------------
>
> Key: KYLIN-3801
> URL: https://issues.apache.org/jira/browse/KYLIN-3801
> Project: Kylin
> Issue Type: Bug
> Components: Tools, Build and Test
> Affects Versions: v2.6.0
> Reporter: Nikodimos Nikolaidis
> Priority: Major
>
> 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:
> {noformat}
> 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.{noformat}
> 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
> {code:java}
> hive_env='Binary file (standard input) matches'{code}
> 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.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)