hbase

phoenix jdbc doesn't work, no exceptions and stuck

不羁岁月 提交于 2020-01-06 18:08:07
问题 I'm new to phoenix and hbase.hbase table and phoenix view works well and i can fetch data through phoenix. when I access jdbc to phoenix,it stucks. import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class Phoenix { private static String driver = "org.apache.phoenix.jdbc.PhoenixDriver"; public static void main(String[] args) throws SQLException { try { Class.forName(driver); } catch

phoenix jdbc doesn't work, no exceptions and stuck

烈酒焚心 提交于 2020-01-06 18:08:04
问题 I'm new to phoenix and hbase.hbase table and phoenix view works well and i can fetch data through phoenix. when I access jdbc to phoenix,it stucks. import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; public class Phoenix { private static String driver = "org.apache.phoenix.jdbc.PhoenixDriver"; public static void main(String[] args) throws SQLException { try { Class.forName(driver); } catch

Nullpointer exception in HBase MapReduce

送分小仙女□ 提交于 2020-01-06 15:18:10
问题 I have a mapreduce app that takes an HBase source data and mapreduces it to another HBase table, all written in Java.When I run it using hadoop jar myhbase.jar It terminated with a NullpointerException as below: 14/01/31 11:07:02 INFO zookeeper.ClientCnxn: Socket connection established to 127.0.0.1/127.0.0.1:2181, initiating session 14/01/31 11:07:02 INFO zookeeper.ClientCnxn: Session establishment complete on server 127.0.0.1/127.0.0.1:2181, sessionid = 0x143e677d6e30007, negotiated timeout

HBase java.lang.NoClassDefFoundError classpath error

心已入冬 提交于 2020-01-06 14:03:43
问题 UPDATE: this is not a homebrew issue, I can confirm this because I get the exact same error when run HBase from the apache source. Been struggling to get HBase on my laptop for testing. Basically I install HBase on my mac by using: brew install hbase but when I go into the hbase shell and issue a command I get this error: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/zookeeper/KeeperException I'm tried to install zookeeper( brew install zookeeper ) but still no luck.

What is the best possible way of interacting with Hbase using Pyspark

被刻印的时光 ゝ 提交于 2020-01-06 12:51:14
问题 I am using pyspark [spark2.3.1] and Hbase1.2.1, I am wondering what could be the best possible way of accessing Hbase using pyspark? I did some initial level of search and found that there are few options available like using shc-core:1.1.1-2.1-s_2.11.jar this could be achieved, but whereever I try to look for some example, at most of the places code is written in Scala or examples are also scala based. I tried implementing basic code in pyspark: from pyspark import SparkContext from pyspark

Connect to Kerborised Hbase tables from Java

可紊 提交于 2020-01-06 05:02:58
问题 I am using below configuration to connect from java code to kerborised hbase tables. config.set("hbase.zookeeper.quorum", zookeeperHosts); config.set("hbase.zookeeper.property.clientPort", zookeeperPort); config.set("hadoop.security.authentication", "kerberos"); config.set("hbase.security.authentication", "kerberos"); UserGroupInformation.setConfiguration(config); UserGroupInformation.loginUserFromKeytab(ZOOKEEPER_PRINCIPAL,ZOOKEEPER_KEYTAB) I am trying to Get data from Hbase . On running

phoenix join operation not working with hbase

社会主义新天地 提交于 2020-01-05 20:27:20
问题 I am using hbase-1.1.0.1 and phoenix-4.4.0-HBase-1.1-bin versions. To run SQL query I am using SQuirrel SQL client. Simple queries such as Select * , Select count(*) , where clause and sub queries are working fine, but JOIN operation is not working at all. Please help me on this. 回答1: I got the solution for this. Actually I did a mistake where I copied "phoenix-core-4.4.0-HBase-1.1.jar" into my hbase's lib directory. When I replaced it with "phoenix-4.4.0-HBase-1.1-server.jar" problem got

Hbase shell - call hbase command on scan results

情到浓时终转凉″ 提交于 2020-01-05 11:55:04
问题 I ran into a small issue here : - I can scan a table using filters from the shell - I can delete a row using hbase shell But I can't find a way to scan a table, iterate on the results and delete them. Is it even possible to 'pipe' commands in hbase shell or do I have to do a ruby script (note: I don't know how to do that) What I want to do : scan 'mytable', {COLUMNS => ['c:1],FILTER => "SingleColumnValueFilter('c', '1', =, 'binary:-1', true, true)"} | delete 'mytable', $result_i, 'c:1' Thanks

Hbase shell - call hbase command on scan results

℡╲_俬逩灬. 提交于 2020-01-05 11:54:11
问题 I ran into a small issue here : - I can scan a table using filters from the shell - I can delete a row using hbase shell But I can't find a way to scan a table, iterate on the results and delete them. Is it even possible to 'pipe' commands in hbase shell or do I have to do a ruby script (note: I don't know how to do that) What I want to do : scan 'mytable', {COLUMNS => ['c:1],FILTER => "SingleColumnValueFilter('c', '1', =, 'binary:-1', true, true)"} | delete 'mytable', $result_i, 'c:1' Thanks

Error running pseudo-distributed hbase

别说谁变了你拦得住时间么 提交于 2020-01-05 09:28:50
问题 I installed Hadoop and HBase in Mac OSX 10.9 through Homebrew. The version of Hadoop is 2.5.1, and the version of HBase is 0.98.6.1. After I started HDFS, and try to start HBase, I got these errors: Error: Could not find or load main class org.apache.hadoop.hbase.util.HBaseConfTool Error: Could not find or load main class org.apache.hadoop.hbase.zookeeper.ZKServerTool starting master, logging to /usr/local/Cellar/hbase/0.98.6.1/logs/hbase-lsphate-master-Ethans-MacBook-Pro.local.out Error: