Re: Alter Table throws java.lang.NullPointerException

2019-07-25 Thread Alexander Batyrshin
HBase - 1.4.8
Phoenix - 4.14.1

Looks like there is very similar issue in jira - 
https://issues.apache.org/jira/browse/PHOENIX-5210 


> On 24 Jul 2019, at 16:46, Josh Elser  wrote:
> 
> Please start by sharing the version of Phoenix that you're using.
> 
> Did you search Jira to see if there was someone else who also reported this 
> issue?
> 
> On 7/23/19 4:24 PM, Alexander Batyrshin wrote:
>> Hello all,
>> Got this:
>> alter table TEST_TABLE SET APPEND_ONLY_SCHEMA=true;
>> java.lang.NullPointerException
>> at 
>> org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3240)
>> at 
>> org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3221)
>> at 
>> org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1432)
>> at 
>> org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
>> at 
>> org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
>> at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
>> at 
>> org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390)
>> at 
>> org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
>> at 
>> org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
>> at sqlline.Commands.execute(Commands.java:822)
>> at sqlline.Commands.sql(Commands.java:732)
>> at sqlline.SqlLine.dispatch(SqlLine.java:813)
>> at sqlline.SqlLine.begin(SqlLine.java:686)
>> at sqlline.SqlLine.start(SqlLine.java:398)
>> at sqlline.SqlLine.main(SqlLine.java:291)
>> Any ideas how to fix?



Re: Alter Table throws java.lang.NullPointerException

2019-07-24 Thread Josh Elser

Please start by sharing the version of Phoenix that you're using.

Did you search Jira to see if there was someone else who also reported 
this issue?


On 7/23/19 4:24 PM, Alexander Batyrshin wrote:

Hello all,

Got this:

alter table TEST_TABLE SET APPEND_ONLY_SCHEMA=true;
java.lang.NullPointerException
 at 
org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3240)
 at 
org.apache.phoenix.schema.MetaDataClient.addColumn(MetaDataClient.java:3221)
 at 
org.apache.phoenix.jdbc.PhoenixStatement$ExecutableAddColumnStatement$1.execute(PhoenixStatement.java:1432)
 at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:408)
 at 
org.apache.phoenix.jdbc.PhoenixStatement$2.call(PhoenixStatement.java:391)
 at org.apache.phoenix.call.CallRunner.run(CallRunner.java:53)
 at 
org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:390)
 at 
org.apache.phoenix.jdbc.PhoenixStatement.executeMutation(PhoenixStatement.java:378)
 at 
org.apache.phoenix.jdbc.PhoenixStatement.execute(PhoenixStatement.java:1825)
 at sqlline.Commands.execute(Commands.java:822)
 at sqlline.Commands.sql(Commands.java:732)
 at sqlline.SqlLine.dispatch(SqlLine.java:813)
 at sqlline.SqlLine.begin(SqlLine.java:686)
 at sqlline.SqlLine.start(SqlLine.java:398)
 at sqlline.SqlLine.main(SqlLine.java:291)


Any ideas how to fix?