hbase

How can I dump hbase table in a text file?

女生的网名这么多〃 提交于 2019-12-20 01:13:18
问题 I need to take a dump of one table in HBase and need it in a text file/csv format? I looked for scan , export and get commands in HBase shell, but it doesn't work. 回答1: There are a lot of ways to get data out of an HBase table like running the export map/reduce job. You can read about this and other here http://blog.sematext.com/2011/03/11/hbase-backup-options/ If you want to control which rows/cells are written you can do that with pig scripts x = LOAD 'hbase://<sourceDatabaseName>' USING

HBase的java代码开发(单列过滤 SingleColumnValueFilter)

允我心安 提交于 2019-12-19 18:32:18
第一步 :创建maven工程,导入jar包 <repositories> <repository> <id>cloudera</id> <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>2.6.0-mr1-cdh5.14.0</version> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-client</artifactId> <version>1.2.0-cdh5.14.0</version> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-server</artifactId> <version>1.2.0-cdh5.14.0</version> </dependency>

HBase的java代码开发(删除一行数据)

心不动则不痛 提交于 2019-12-19 15:37:35
第一步 :创建maven工程,导入jar包 <repositories> <repository> <id>cloudera</id> <url>https://repository.cloudera.com/artifactory/cloudera-repos/</url> </repository> </repositories> <dependencies> <dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-client</artifactId> <version>2.6.0-mr1-cdh5.14.0</version> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-client</artifactId> <version>1.2.0-cdh5.14.0</version> </dependency> <dependency> <groupId>org.apache.hbase</groupId> <artifactId>hbase-server</artifactId> <version>1.2.0-cdh5.14.0</version> </dependency>

Scan a Hadoop Database table in Spark using indices from an RDD

烈酒焚心 提交于 2019-12-19 12:51:16
问题 So if there is a table in the database shown as below: Key2 DateTimeAge AAA1 XXX XXX XXX AAA2 XXX XXX XXX AAA3 XXX XXX XXX AAA4 XXX XXX XXX AAA5 XXX XXX XXX AAA6 XXX XXX XXX AAA7 XXX XXX XXX AAA8 XXX XXX XXX BBB1 XXX XXX XXX BBB2 XXX XXX XXX BBB3 XXX XXX XXX BBB4 XXX XXX XXX BBB5 XXX XXX XXX CCC1 XXX XXX XXX CCC2 XXX XXX XXX CCC3 XXX XXX XXX CCC4 XXX XXX XXX CCC5 XXX XXX XXX CCC6 XXX XXX XXX CCC7 XXX XXX XXX DDD1 XXX XXX XXX DDD2 XXX XXX XXX DDD3 XXX XXX XXX DDD4 XXX XXX XXX DDD5 XXX XXX XXX

HBase Java client - unknown host: localhost.localdomain

怎甘沉沦 提交于 2019-12-19 11:59:28
问题 Versions: Hadoop: 2.0.0-cdh4.3.1 HBase: 0.94.6-cdh4.3.1 I am running cloudera quick start vm(Everything is running on 172.16.144.150), Here is my little HBase Java client(HbaseClient.java), HBase client is running on a remote machine, all it does is: public static void main(String[] args) throws IOException { Configuration config = HBaseConfiguration.create(); HTable table = new HTable(config, "s1"); System.out.println(table.getTableName()); } hbase-site.xml: <property> <name>hbase.rootdir<

How to connect Hive to asp.net project

旧城冷巷雨未停 提交于 2019-12-19 11:27:13
问题 Hi I'm very new to Hadoop. I have installed Microsoft HDInsight to my local system. Now I want to connect to hive and HBase but for HIVE connection I have to specify Connection string, port, username, password. But I'm not able to figure out how I will get this value. I have tried with localhost and 8085 as a port but this doesn't work. I also done it by giving localhost IP and my system IP too. Please help with this and let me know how i should proceed for HBase connectivity 回答1: Your best

Caused by: java.lang.ClassNotFoundException: org.apache.zookeeper.KeeperException

为君一笑 提交于 2019-12-19 10:07:15
问题 When I run a JAVA program(can not new HTable) under the Eclipse IDE, i got following errors: Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/zookeeperKeeperException at org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:185) at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:154) at org.apache.hadoop.hbase.client.HTable.<init>(HTable.java:132) at HBaseConnector.main(HBaseConnector.java:27) Caused by: java.lang

doing a ValueFilter or a ColumnFilter on hbase shell

喜你入骨 提交于 2019-12-19 09:54:16
问题 Could anyone please tell me how to do a qualifier filter or ValueFilter from the hbase shell command line? 回答1: It is very similar to how you would code in any programming language, for instance :- import org.apache.hadoop.hbase.filter.CompareFilter import org.apache.hadoop.hbase.filter.SingleColumnValueFilter import org.apache.hadoop.hbase.util.Bytes scan 'tableName', {COLUMNS=>['CF:qualifier1', 'CF:qualifier2'], LIMIT=>10, FILTER=>SingleColumnValueFilter.new(Bytes.toBytes('CF'), Bytes

ZooKeeper exists failed after 3 retries

非 Y 不嫁゛ 提交于 2019-12-19 08:05:13
问题 I am running Hadoop-1.2.1 and HBase-0.94.11 in a pseudo-distributed mode. Due to power failure Hadoop and HBase set up went down.Next time when I restarted my machine and the pseudo-distribution set up, HBase stopped working with the following errors on HBase shell: 13/11/27 13:53:27 ERROR zookeeper.RecoverableZooKeeper: ZooKeeper exists failed after 3 retries 13/11/27 13:53:27 WARN zookeeper.ZKUtil: hconnection Unable to set watcher on znode (/hbase/hbaseid) org.apache.zookeeper

Starting Hbase : cygpath: can't convert empty path

守給你的承諾、 提交于 2019-12-19 07:35:00
问题 I hope somebody can help me with this problemoo: Starting hbase, I get this error: $ ./start-hbase.sh cygpath: can't convert empty path cygpath: can't convert empty path soporte@localhost's password: localhost: starting zookeeper, logging to /usr/local/hbase-0.90.4/bin/../logs/hbase-CNEOSYLAP-zookeeper-CNEOSYLAP.out localhost: cygpath: can't convert empty path starting master, logging to /usr/local/hbase-0.90.4/bin/../logs/hbase-CNEOSYLAP-master-CNEOSYLAP.out cygpath: can't convert empty path