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

Shinichi Yamashita commented on HIVE-11135:
-------------------------------------------

I attach a patch file and it is output as follows.

{code}
beeline> !set
authtype
autocommit          false
autosave            false
color               false
delimiterfordsv     |
entirelineascommand false
fastconnect         true
force               false
headerinterval      100
historyfile         /root/.beeline/history
hiveconfvariables   {}
hivevariables       {}
incremental         false
initfile
isolation           TRANSACTION_REPEATABLE_READ
maxcolumnwidth      15
maxheight           63
maxwidth            237
nullemptystring     false
nullstring          NULL
numberformat        default
outputformat        table
propertiesfile      /root/.beeline/beeline.properties
scriptfile
showelapsedtime     true
showheader          true
shownestederrs      false
showwarnings        false
timeout             -1
trimscripts         true
truncatetable       false
verbose             false
{code}

> Fix the Beeline set and save command in order to avoid the 
> NullPointerException
> -------------------------------------------------------------------------------
>
>                 Key: HIVE-11135
>                 URL: https://issues.apache.org/jira/browse/HIVE-11135
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline
>    Affects Versions: 2.0.0
>            Reporter: Shinichi Yamashita
>            Assignee: Shinichi Yamashita
>         Attachments: HIVE-11135.1.patch
>
>
> When I run set and save command at Beeline in my environment. And 
> NullPointerException occurred as follows.
> {code}
> [root@hive ~]# /usr/local/hive/bin/beeline
> Beeline version 2.0.0-SNAPSHOT by Apache Hive
> beeline> !set
> java.lang.NullPointerException
> beeline> !save
> Saving preferences to: /root/.beeline/beeline.properties
> java.lang.NullPointerException
> {code}
> This problem has occurred because the following method's return value in 
> BeeLineOpts#toProperties is null.
> {code}
> beeLine.getReflector().invoke(this, "get" + names[i], new 
> Object[0]).toString()
> {code}
> Therefore it is modified so as to avoid NullPointerException.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to