phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Taylor (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (PHOENIX-4395) Illegal data. Expected length of at least 49 bytes, but had 4 (state=22000,code=201)
Date Tue, 21 Nov 2017 16:32:01 GMT

     [ https://issues.apache.org/jira/browse/PHOENIX-4395?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

James Taylor resolved PHOENIX-4395.
-----------------------------------
    Resolution: Invalid

These types of questions about how to work with data created in HBase through Phoenix are
more appropriate to ask on the mailing list. You’ll need to either create a VIEW instead
of a TABLE, which has many limitations, or create an empty KeyValue with each row: http://phoenix.apache.org/faq.html#Why_empty_key_value

> Illegal data. Expected length of at least 49 bytes, but had 4 (state=22000,code=201)
> ------------------------------------------------------------------------------------
>
>                 Key: PHOENIX-4395
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-4395
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 4.7.0, 4.12.0
>            Reporter: Rajat Thakur
>
> I am importing Oracle ExaData to Hbase via Sqoop. And query via phoenix .
> There are problem in following Column attributes (when querying via phoenix) whose dataType
is : DATE, TIMESTAMP, BIGINT
> Error: ERROR 201 (22000): Illegal data. Expected length of at least 49 bytes, but had
4 (state=22000,code=201)
> java.sql.SQLException: ERROR 201 (22000): Illegal data. Expected length of at least 49
bytes, but had 4
> 	at org.apache.phoenix.exception.SQLExceptionCode$Factory$1.newException(SQLExceptionCode.java:489)
> 	at org.apache.phoenix.exception.SQLExceptionInfo.buildException(SQLExceptionInfo.java:150)
> 	at org.apache.phoenix.schema.KeyValueSchema.next(KeyValueSchema.java:211)
> 	at org.apache.phoenix.expression.ProjectedColumnExpression.evaluate(ProjectedColumnExpression.java:116)
> 	at org.apache.phoenix.compile.ExpressionProjector.getValue(ExpressionProjector.java:69)
> 	at org.apache.phoenix.jdbc.PhoenixResultSet.getString(PhoenixResultSet.java:609)
> 	at sqlline.Rows$Row.<init>(Rows.java:183)
> 	at sqlline.BufferedRows.<init>(BufferedRows.java:38)
> 	at sqlline.SqlLine.print(SqlLine.java:1660)
> 	at sqlline.Commands.execute(Commands.java:833)
> 	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)



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message