[
https://issues.apache.org/jira/browse/KYLIN-3801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16774817#comment-16774817
]
ASF subversion and git services commented on KYLIN-3801:
--------------------------------------------------------
Commit 96d72ca74d5b19173aef11df51d1e9f50eac557a in kylin's branch
refs/heads/master-hadoop3.1 from kikniknik
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=96d72ca ]
KYLIN-3801 Add --text flag in grep in find-hive-dependency.sh
> 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
> Assignee: Nikodimos Nikolaidis
> Priority: Major
> Fix For: v2.6.1
>
>
> 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)