Member since
07-17-2019
738
Posts
433
Kudos Received
111
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 3473 | 08-06-2019 07:09 PM | |
| 3670 | 07-19-2019 01:57 PM | |
| 5192 | 02-25-2019 04:47 PM | |
| 4664 | 10-11-2018 02:47 PM | |
| 1768 | 09-26-2018 02:49 PM |
08-09-2016
07:16 PM
2 Kudos
See http://phoenix.apache.org/language/index.html#condition. Your "traditional sql" approach works with Apache Phoenix. > create table foo(s varchar, pk integer not null primary key);
> upsert into foo values('abcd_bar', 1);
> upsert into foo values('dcba_bar', 2);
> select * from foo where s like 'abcd%'; This will return +-----------+-----+
| S | PK |
+-----------+-----+
| abcd_bar | 1 |
+-----------+-----+
... View more
08-09-2016
02:38 PM
Probably only by making your own Hive UDF. The VARCHAR and TO_NUMBER approach would be simplest.
... View more
08-08-2016
04:45 PM
Ok, beware that you are going down an unsupported path. You may be able to use the HBase Bytes class for properly converting data in your write-side, but I am not sure if this will be 100% accurate.
... View more
08-08-2016
04:15 PM
2 Kudos
You should use Apache Phoenix's APIs for writing data to Phoenix tables. There is often special encoding of values in these tables. Integers are one example. They are stored as a sequence of 4 bytes (with a sign bit) to ensure that they sort properly. The "string" form of the integer is being parsed as a number.
... View more
08-08-2016
02:23 PM
3 Kudos
A few things:
It looks like your HDFS is not healthy. Can you run `hdfs fsck` on the file "/apps/hbase/data1/.hbase-snapshot/S3LINKS-AIM-SNAPSHOT-NEW/.snapshotinfo"?
Regarding the offline region "CUTOFF8,,1465897349742.2077c5dfbfb97d67f09120e4b9cdc15a.", you can check the RegionServer logs on data1.corp.mirrorplus.com. Also, you can try to grep the HBase master log for "2077c5dfbfb97d67f09120e4b9cdc15a", looking for the last "OPEN" location. The HBase master UI might also tell you if this region is stuck in transition (RIT). If so, `hbase hbck` should be able to help you.
... View more
08-08-2016
02:19 PM
ARRAY support is a known deficiency: https://issues.apache.org/jira/browse/CALCITE-1050 I'm not sure what the "retry problem" is you're referring to. The Phoenix thick client will take a moment to connect initially (to ensure that the Phoenix system tables are properly created). The statements you provided are not errors, but a sign that Phoenix is doing this.
... View more
08-03-2016
03:27 PM
2 Kudos
org.apache.hadoop.net.ConnectTimeoutException: 10000 millis timeout while waiting for channel to be ready for connect. ch : java.nio.channels.SocketChannel[connection-pending remote=ip-172-31-15-225.us-west-2.compute.internal/52.32.173.25:16000] Can you connect to this IP address and port on your local machine using telnet/netcat? e.g. telnet 52.32.173.25 16000 You should get a message "Connected to <host>" and not "Connection refused". If you get the "Connection refused" message, it is likely some firewall or networking issue (like @Ankit Singhal pointed out)
... View more
08-01-2016
08:33 PM
2 Kudos
You might be able to change this in the client itself using the "timeZone" option in the Phoenix Thin Driver's JDBC URL: http://calcite.apache.org/avatica/docs/client_reference.html#timeZone
... View more
08-01-2016
08:15 PM
Can you share the full exception trace, please? I'm not 100% sure, but I don't recall us shipping a version of HDP with 0.98 HBase and 0.81.1 Slider. Are you using HDP-created artifacts to run HBase on Slider?
... View more
08-01-2016
02:23 PM
3 Kudos
There are two sides here. The documentation that you listed and @ssoldatov confirmed are accurate for PQS to connect to HBase. The other side, which is likely missing as "official" Apache Phoenix documentation, is the thin-client configuration properties. These properties are presently available at http://calcite.apache.org/avatica/docs/client_reference.html. The sqlline-thin.py script will automatically configure them for you, but you would have to provide them when using the thin JDBC driver directly. In practice, it would look something like the following when you have already performed a Kerberos login jdbc:phoenix:thin:url=<scheme>://<server-hostname>:<port>;authentication=SPNEGO Alternatively, you can provide a principal and keytab which the thin driver will use to login automatically: jdbc:phoenix:thin:url=<scheme>://<server-hostname>:<port>;authentication=SPNEGO;principal=my_user;keytab=/home/my_user/my_user.keytab
... View more