You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/02/13 18:45:00 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=16767452#comment-16767452 ] 

ASF GitHub Bot commented on KYLIN-3801:
---------------------------------------

shaofengshi commented on pull request #461: KYLIN-3801 Add --text flag in grep in find-hive-dependency.sh
URL: https://github.com/apache/kylin/pull/461
 
 
   
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> 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)