[ 
https://issues.apache.org/jira/browse/KYLIN-3801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16771647#comment-16771647
 ] 

ASF subversion and git services commented on KYLIN-3801:
--------------------------------------------------------

Commit 36fae8eca8561cf8acd087def6a5ad2ee3ec0d25 in kylin's branch 
refs/heads/2.6.x from kikniknik
[ https://gitbox.apache.org/repos/asf?p=kylin.git;h=36fae8e ]

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)

Reply via email to