castagna / hbase-rdf

Apache License 2.0
24 stars 9 forks source link

Disabling Tables #5

Open archerz opened 12 years ago

archerz commented 12 years ago

Vabihav,

I had a little issue working with this code. It would be of much pleasure if you can help me solve this. This piece of code runs perfectly the first time, connecting to an HBase instance and fetching the model. It is copied from one of your benchmarks.

Store store = HBaseRdfFactory.connectStore( "Store/hbaserdf-vp.ttl" );
Model model = HBaseRdfFactory.connectDefaultModel( store );

However, running it the second time causes some exceptions to be thrown, indicating that some of the tables have not been disabled:

12/07/21 17:20:05 INFO connection.HBaseRdfConnection: openTable: Exception
org.apache.hadoop.hbase.TableNotDisabledException: default-predicate-mapping
default-predicate-mapping

Disabling all the tables manually using the HBase shell fixes the problem once. The code works only the first time after each manual disabling of the tables. I guess there's something I'm missing here. I tried to contact you by email but didn't succeed.

vaibhavkhadilkar commented 12 years ago

Hi Arash,

Sorry, I haven't had time to look at your issue yet. I will take a look at it sometime soon (probably tomorrow) and let you know. In the meantime, I was wondering if you had the latest code from GitHub? The link is as follows: https://github.com/vaibhavkhadilkar/hbase-rdf

Thanks, Vaibhav.

On Mon, Jul 23, 2012 at 3:18 PM, arash1988 < reply@reply.github.com

wrote:

Vabihav,

I had a little issue working with this code. It would be of much pleasure if you can help me solve this. This piece of code runs perfectly the first time, connecting to an HBase instance and fetching the model. It is copied from one of your benchmarks.

Store store = HBaseRdfFactory.connectStore( "Store/hbaserdf-vp.ttl" );
Model model = HBaseRdfFactory.connectDefaultModel( store );

However, running it the second time causes some exceptions to be thrown, indicating that some of the tables have not been disabled:

12/07/21 17:20:05 INFO connection.HBaseRdfConnection: openTable:

Exception org.apache.hadoop.hbase.TableNotDisabledException: default-predicate-mapping default-predicate-mapping

Disabling all the tables manually using the HBase shell fixes the problem once. The code works only the first time after each manual disabling of the tables. I guess there's something I'm missing here. I tried to contact you by email but didn't succeed.


Reply to this email directly or view it on GitHub: https://github.com/castagna/hbase-rdf/issues/5

archerz commented 12 years ago

Thank you very much, Vaibhav. That would be great. Yes, I have the latest code and did all my tests on the code I have downloaded from the repository you just mentioned.

vaibhavkhadilkar commented 12 years ago

Hi Arash,

The issue is fixed. Please have a look.

Thanks, Vaibhav.

On Mon, Jul 23, 2012 at 3:18 PM, arash1988 < reply@reply.github.com

wrote:

Vabihav,

I had a little issue working with this code. It would be of much pleasure if you can help me solve this. This piece of code runs perfectly the first time, connecting to an HBase instance and fetching the model. It is copied from one of your benchmarks.

Store store = HBaseRdfFactory.connectStore( "Store/hbaserdf-vp.ttl" );
Model model = HBaseRdfFactory.connectDefaultModel( store );

However, running it the second time causes some exceptions to be thrown, indicating that some of the tables have not been disabled:

12/07/21 17:20:05 INFO connection.HBaseRdfConnection: openTable:

Exception org.apache.hadoop.hbase.TableNotDisabledException: default-predicate-mapping default-predicate-mapping

Disabling all the tables manually using the HBase shell fixes the problem once. The code works only the first time after each manual disabling of the tables. I guess there's something I'm missing here. I tried to contact you by email but didn't succeed.


Reply to this email directly or view it on GitHub: https://github.com/castagna/hbase-rdf/issues/5

archerz commented 12 years ago

Hi,

Thanks for your time and attention Vaibhav.

archerz commented 12 years ago

Hi Vaibhav,

Now I'm facing this:

SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/fattane/Desktop/hbase/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/fattane/NetBeansProjects/Store2/lib/slf4j-log4j12-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.4.3-1240972, built on 02/06/2012 10:48 GMT 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:host.name=fattane-desktop 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:java.version=1.7.0_04 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Oracle Corporation 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:java.home=/home/fattane/Desktop/jdk1.7.0_04/jre 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:java.class.path=/home/fattane/Desktop/hbase/lib/activation-1.1.jar:/home/fattane/Desktop/hbase/lib/asm-3.1.jar:/home/fattane/Desktop/hbase/lib/avro-1.5.3.jar:/home/fattane/Desktop/hbase/lib/avro-ipc-1.5.3.jar:/home/fattane/Desktop/hbase/lib/commons-beanutils-1.7.0.jar:/home/fattane/Desktop/hbase/lib/commons-beanutils-core-1.8.0.jar:/home/fattane/Desktop/hbase/lib/commons-cli-1.2.jar:/home/fattane/Desktop/hbase/lib/commons-codec-1.4.jar:/home/fattane/Desktop/hbase/lib/commons-collections-3.2.1.jar:/home/fattane/Desktop/hbase/lib/commons-configuration-1.6.jar:/home/fattane/Desktop/hbase/lib/commons-digester-1.8.jar:/home/fattane/Desktop/hbase/lib/commons-el-1.0.jar:/home/fattane/Desktop/hbase/lib/commons-httpclient-3.1.jar:/home/fattane/Desktop/hbase/lib/commons-lang-2.5.jar:/home/fattane/Desktop/hbase/lib/commons-logging-1.1.1.jar:/home/fattane/Desktop/hbase/lib/commons-math-2.1.jar:/home/fattane/Desktop/hbase/lib/commons-net-1.4.1.jar:/home/fattane/Desktop/hbase/lib/core-3.1.1.jar:/home/fattane/Desktop/hbase/lib/guava-r09.jar:/home/fattane/Desktop/hbase/lib/hadoop-core-1.0.0.jar:/home/fattane/Desktop/hbase/lib/high-scale-lib-1.1.1.jar:/home/fattane/Desktop/hbase/lib/httpclient-4.0.1.jar:/home/fattane/Desktop/hbase/lib/httpcore-4.0.1.jar:/home/fattane/Desktop/hbase/lib/jackson-core-asl-1.5.5.jar:/home/fattane/Desktop/hbase/lib/jackson-jaxrs-1.5.5.jar:/home/fattane/Desktop/hbase/lib/jackson-mapper-asl-1.5.5.jar:/home/fattane/Desktop/hbase/lib/jackson-xc-1.5.5.jar:/home/fattane/Desktop/hbase/lib/jamon-runtime-2.3.1.jar:/home/fattane/Desktop/hbase/lib/jasper-compiler-5.5.23.jar:/home/fattane/Desktop/hbase/lib/jasper-runtime-5.5.23.jar:/home/fattane/Desktop/hbase/lib/jaxb-api-2.1.jar:/home/fattane/Desktop/hbase/lib/jaxb-impl-2.1.12.jar:/home/fattane/Desktop/hbase/lib/jersey-core-1.4.jar:/home/fattane/Desktop/hbase/lib/jersey-json-1.4.jar:/home/fattane/Desktop/hbase/lib/jersey-server-1.4.jar:/home/fattane/Desktop/hbase/lib/jettison-1.1.jar:/home/fattane/Desktop/hbase/lib/jetty-6.1.26.jar:/home/fattane/Desktop/hbase/lib/jetty-util-6.1.26.jar:/home/fattane/Desktop/hbase/lib/jruby-complete-1.6.5.jar:/home/fattane/Desktop/hbase/lib/jsp-2.1-6.1.14.jar:/home/fattane/Desktop/hbase/lib/jsp-api-2.1-6.1.14.jar:/home/fattane/Desktop/hbase/lib/libthrift-0.7.0.jar:/home/fattane/Desktop/hbase/lib/log4j-1.2.16.jar:/home/fattane/Desktop/hbase/lib/netty-3.2.4.Final.jar:/home/fattane/Desktop/hbase/lib/protobuf-java-2.4.0a.jar:/home/fattane/Desktop/hbase/lib/servlet-api-2.5-6.1.14.jar:/home/fattane/Desktop/hbase/lib/servlet-api-2.5.jar:/home/fattane/Desktop/hbase/lib/slf4j-api-1.5.8.jar:/home/fattane/Desktop/hbase/lib/slf4j-log4j12-1.5.8.jar:/home/fattane/Desktop/hbase/lib/snappy-java-1.0.3.2.jar:/home/fattane/Desktop/hbase/lib/stax-api-1.0.1.jar:/home/fattane/Desktop/hbase/lib/velocity-1.7.jar:/home/fattane/Desktop/hbase/lib/xmlenc-0.52.jar:/home/fattane/Desktop/hbase/lib/zookeeper-3.4.3.jar:/home/fattane/Desktop/hbase/hbase-0.92.1.jar:/home/fattane/NetBeansProjects/Store2/lib/activation-1.1.jar:/home/fattane/NetBeansProjects/Store2/lib/ant-1.7.1.jar:/home/fattane/NetBeansProjects/Store2/lib/ant-launcher-1.7.1.jar:/home/fattane/NetBeansProjects/Store2/lib/antlr-runtime-3.2.jar:/home/fattane/NetBeansProjects/Store2/lib/arq-2.8.7-tests.jar:/home/fattane/NetBeansProjects/Store2/lib/arq-2.8.7.jar:/home/fattane/NetBeansProjects/Store2/lib/asm-3.1.jar:/home/fattane/NetBeansProjects/Store2/lib/aterm-java-1.6.jar:/home/fattane/NetBeansProjects/Store2/lib/avro-1.3.2.jar:/home/fattane/NetBeansProjects/Store2/lib/commons-cli-1.2.jar:/home/fattane/NetBeansProjects/Store2/lib/commons-codec-1.2.jar:/home/fattane/NetBeansProjects/Store2/lib/commons-el-1.0.jar:/home/fattane/NetBeansProjects/Store2/lib/commons-httpclient-3.1.jar:/home/fattane/NetBeansProjects/Store2/lib/commons-lang-2.5.jar:/home/fattane/NetBeansProjects/Store2/lib/commons-logging-1.1.1.jar:/home/fattane/NetBeansProjects/Store2/lib/commons-logging-api.jar:/home/fattane/NetBeansProjects/Store2/lib/commons-net-1.4.1.jar:/home/fattane/NetBeansProjects/Store2/lib/core-3.1.1.jar:/home/fattane/NetBeansProjects/Store2/lib/guava-r05.jar:/home/fattane/NetBeansProjects/Store2/lib/hadoop-0.20.2-core.jar:/home/fattane/NetBeansProjects/Store2/lib/hadoop-0.20.2-test.jar:/home/fattane/NetBeansProjects/Store2/lib/hbase-0.90.1-tests.jar:/home/fattane/NetBeansProjects/Store2/lib/hbase-0.90.1.jar:/home/fattane/NetBeansProjects/Store2/lib/hsqldb-1.8.0.10.jar:/home/fattane/NetBeansProjects/Store2/lib/icu4j-3.4.4.jar:/home/fattane/NetBeansProjects/Store2/lib/iri-0.8.jar:/home/fattane/NetBeansProjects/Store2/lib/jackson-core-asl-1.5.2.jar:/home/fattane/NetBeansProjects/Store2/lib/jackson-mapper-asl-1.5.2.jar:/home/fattane/NetBeansProjects/Store2/lib/jasper-compiler-5.5.23.jar:/home/fattane/NetBeansProjects/Store2/lib/jasper-runtime-5.5.23.jar:/home/fattane/NetBeansProjects/Store2/lib/jaxb-api-2.1.jar:/home/fattane/NetBeansProjects/Store2/lib/jaxb-api.jar:/home/fattane/NetBeansProjects/Store2/lib/jaxb-impl-2.1.12.jar:/home/fattane/NetBeansProjects/Store2/lib/jena-2.6.4-tests.jar:/home/fattane/NetBeansProjects/Store2/lib/jena-2.6.4.jar:/home/fattane/NetBeansProjects/Store2/lib/jena-hbaserdf-example.jar:/home/fattane/NetBeansProjects/Store2/lib/jena-hbaserdf-test.jar:/home/fattane/NetBeansProjects/Store2/lib/jena-hbaserdf.jar:/home/fattane/NetBeansProjects/Store2/lib/jersey-core-1.1.5.1.jar:/home/fattane/NetBeansProjects/Store2/lib/jersey-json-1.1.5.1.jar:/home/fattane/NetBeansProjects/Store2/lib/jersey-server-1.1.5.1.jar:/home/fattane/NetBeansProjects/Store2/lib/jets3t-0.7.1.jar:/home/fattane/NetBeansProjects/Store2/lib/jettison-1.1.jar:/home/fattane/NetBeansProjects/Store2/lib/jetty-6.1.24.jar:/home/fattane/NetBeansProjects/Store2/lib/jetty-util-6.1.24.jar:/home/fattane/NetBeansProjects/Store2/lib/jgrapht-jdk1.5.jar:/home/fattane/NetBeansProjects/Store2/lib/jline-0.9.94.jar:/home/fattane/NetBeansProjects/Store2/lib/jruby-complete-1.4.0.jar:/home/fattane/NetBeansProjects/Store2/lib/jsp-2.1-6.1.14.jar:/home/fattane/NetBeansProjects/Store2/lib/jsp-api-2.1-6.1.14.jar:/home/fattane/NetBeansProjects/Store2/lib/jsr311-api-1.1.1.jar:/home/fattane/NetBeansProjects/Store2/lib/junit-4.5.jar:/home/fattane/NetBeansProjects/Store2/lib/kfs-0.3.jar:/home/fattane/NetBeansProjects/Store2/lib/log4j-1.2.15.jar:/home/fattane/NetBeansProjects/Store2/lib/lucene-core-2.3.1.jar:/home/fattane/NetBeansProjects/Store2/lib/oro-2.0.8.jar:/home/fattane/NetBeansProjects/Store2/lib/owlapi-bin.jar:/home/fattane/NetBeansProjects/Store2/lib/owlapi-src.jar:/home/fattane/NetBeansProjects/Store2/lib/paranamer-2.2.jar:/home/fattane/NetBeansProjects/Store2/lib/paranamer-ant-2.2.jar:/home/fattane/NetBeansProjects/Store2/lib/paranamer-generator-2.2.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-cli.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-core.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-datatypes.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-dig.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-el.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-explanation.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-jena.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-modularity.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-owlapi.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-owlapiv3.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-pellint.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-query.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-rules.jar:/home/fattane/NetBeansProjects/Store2/lib/pellet-test.jar:/home/fattane/NetBeansProjects/Store2/lib/protobuf-java-2.3.0.jar:/home/fattane/NetBeansProjects/Store2/lib/qdox-1.10.1.jar:/home/fattane/NetBeansProjects/Store2/lib/relaxngDatatype.jar:/home/fattane/NetBeansProjects/Store2/lib/sdb-1.3.3.jar:/home/fattane/NetBeansProjects/Store2/lib/servlet-api-2.5-6.1.14.jar:/home/fattane/NetBeansProjects/Store2/lib/servlet.jar:/home/fattane/NetBeansProjects/Store2/lib/slf4j-api-1.5.8.jar:/home/fattane/NetBeansProjects/Store2/lib/slf4j-log4j12-1.5.8.jar:/home/fattane/NetBeansProjects/Store2/lib/stax-api-1.0-2.jar:/home/fattane/NetBeansProjects/Store2/lib/thrift-0.2.0.jar:/home/fattane/NetBeansProjects/Store2/lib/wstx-asl-3.2.9.jar:/home/fattane/NetBeansProjects/Store2/lib/xercesImpl-2.7.1.jar:/home/fattane/NetBeansProjects/Store2/lib/xmlenc-0.52.jar:/home/fattane/NetBeansProjects/Store2/lib/xsdlib.jar:/home/fattane/NetBeansProjects/Store2/lib/zookeeper-3.3.1.jar:/home/fattane/NetBeansProjects/Store2/build/classes:/home/fattane/NetBeansProjects/Store2/src 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:java.library.path=/usr/java/packages/lib/i386:/lib:/usr/lib 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:java.compiler= 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:os.arch=i386 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:os.version=2.6.32-21-generic 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:user.name=fattane 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/fattane 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Client environment:user.dir=/home/fattane/NetBeansProjects/Store2 12/07/26 13:21:29 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=hconnection 12/07/26 13:21:29 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181 12/07/26 13:21:29 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:29 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:29 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session 12/07/26 13:21:29 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x138c41c107b0087, negotiated timeout = 40000 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@54841c 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181 12/07/26 13:21:30 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:30 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x138c41c107b0088, negotiated timeout = 40000 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Session: 0x138c41c107b0088 closed 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: EventThread shut down 12/07/26 13:21:30 INFO connection.HBaseRdfConnection: openTable: Exception org.apache.hadoop.hbase.TableNotDisabledException: default-tbl-EMAIL-objects default-tbl-EMAIL-objects 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@54841c 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Opening socket connection to server /0:0:0:0:0:0:0:1:2181 12/07/26 13:21:30 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session 12/07/26 13:21:30 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x138c41c107b0089, negotiated timeout = 40000 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Session: 0x138c41c107b0089 closed 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: EventThread shut down 12/07/26 13:21:30 INFO connection.HBaseRdfConnection: openTable: Exception org.apache.hadoop.hbase.TableNotDisabledException: default-tbl-EMAIL-subjects default-tbl-EMAIL-subjects 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@54841c 12/07/26 13:21:30 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181 12/07/26 13:21:30 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x138c41c107b008a, negotiated timeout = 40000 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Session: 0x138c41c107b008a closed 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: EventThread shut down 12/07/26 13:21:30 INFO connection.HBaseRdfConnection: openTable: Exception org.apache.hadoop.hbase.TableNotDisabledException: default-tbl-FN-objects default-tbl-FN-objects 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@54841c 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Opening socket connection to server /0:0:0:0:0:0:0:1:2181 12/07/26 13:21:30 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x138c41c107b008b, negotiated timeout = 40000 12/07/26 13:21:30 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Session: 0x138c41c107b008b closed 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: EventThread shut down 12/07/26 13:21:30 INFO connection.HBaseRdfConnection: openTable: Exception org.apache.hadoop.hbase.TableNotDisabledException: default-tbl-FN-subjects default-tbl-FN-subjects 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@54841c 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Opening socket connection to server /0:0:0:0:0:0:0:1:2181 12/07/26 13:21:30 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session 12/07/26 13:21:30 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x138c41c107b008c, negotiated timeout = 40000 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Session: 0x138c41c107b008c closed 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: EventThread shut down 12/07/26 13:21:30 INFO connection.HBaseRdfConnection: openTable: Exception org.apache.hadoop.hbase.TableNotDisabledException: default-predicate-mapping default-predicate-mapping 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@54841c 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181 12/07/26 13:21:30 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session 12/07/26 13:21:30 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x138c41c107b008d, negotiated timeout = 40000 12/07/26 13:21:30 INFO zookeeper.ZooKeeper: Session: 0x138c41c107b008d closed 12/07/26 13:21:30 INFO zookeeper.ClientCnxn: EventThread shut down 12/07/26 13:21:30 INFO client.HBaseAdmin: Started disable of default-tbl-FN-objects 12/07/26 13:21:32 INFO client.HBaseAdmin: Disabled default-tbl-FN-objects 12/07/26 13:21:33 INFO client.HBaseAdmin: Deleted default-tbl-FN-objects 12/07/26 13:21:33 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@54841c 12/07/26 13:21:33 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181 12/07/26 13:21:33 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:33 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session 12/07/26 13:21:33 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x138c41c107b008e, negotiated timeout = 40000 12/07/26 13:21:33 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:33 INFO zookeeper.ZooKeeper: Session: 0x138c41c107b008e closed 12/07/26 13:21:33 INFO zookeeper.ClientCnxn: EventThread shut down 12/07/26 13:21:33 INFO client.HBaseAdmin: Started disable of default-tbl-FN-subjects 12/07/26 13:21:35 INFO client.HBaseAdmin: Disabled default-tbl-FN-subjects 12/07/26 13:21:36 INFO client.HBaseAdmin: Deleted default-tbl-FN-subjects 12/07/26 13:21:36 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@54841c 12/07/26 13:21:36 INFO zookeeper.ClientCnxn: Opening socket connection to server /127.0.0.1:2181 12/07/26 13:21:36 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:36 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:36 INFO zookeeper.ClientCnxn: Socket connection established to localhost/127.0.0.1:2181, initiating session 12/07/26 13:21:36 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/127.0.0.1:2181, sessionid = 0x138c41c107b008f, negotiated timeout = 40000 12/07/26 13:21:36 INFO zookeeper.ZooKeeper: Session: 0x138c41c107b008f closed 12/07/26 13:21:36 INFO zookeeper.ClientCnxn: EventThread shut down 12/07/26 13:21:36 INFO client.HBaseAdmin: Started disable of default-tbl-EMAIL-objects 12/07/26 13:21:38 INFO client.HBaseAdmin: Disabled default-tbl-EMAIL-objects 12/07/26 13:21:39 INFO client.HBaseAdmin: Deleted default-tbl-EMAIL-objects 12/07/26 13:21:39 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181 sessionTimeout=180000 watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@54841c 12/07/26 13:21:39 INFO zookeeper.ClientCnxn: Opening socket connection to server /0:0:0:0:0:0:0:1:2181 12/07/26 13:21:39 INFO client.ZooKeeperSaslClient: Client will not SASL-authenticate because the default JAAS configuration section 'Client' could not be found. If you are not using SASL, you may ignore this. On the other hand, if you expected SASL to work, please fix your JAAS configuration. 12/07/26 13:21:39 INFO zookeeper.ClientCnxn: Socket connection established to localhost/0:0:0:0:0:0:0:1:2181, initiating session 12/07/26 13:21:39 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181, sessionid = 0x138c41c107b0090, negotiated timeout = 40000 12/07/26 13:21:39 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 5049@fattane-desktop 12/07/26 13:21:39 INFO zookeeper.ZooKeeper: Session: 0x138c41c107b0090 closed 12/07/26 13:21:39 INFO zookeeper.ClientCnxn: EventThread shut down 12/07/26 13:21:39 INFO client.HBaseAdmin: Started disable of default-tbl-EMAIL-subjects 12/07/26 13:21:41 INFO client.HBaseAdmin: Disabled default-tbl-EMAIL-subjects 12/07/26 13:21:42 INFO client.HBaseAdmin: Deleted default-tbl-EMAIL-subjects 12/07/26 13:21:42 INFO layout.LoaderTuplesNodes: Triples added:: 0 12/07/26 13:21:43 INFO client.HBaseAdmin: Started disable of default-tbl-FN-subjects 12/07/26 13:21:45 INFO client.HBaseAdmin: Disabled default-tbl-FN-subjects 12/07/26 13:21:45 INFO client.HBaseAdmin: Started enable of default-tbl-FN-subjects 12/07/26 13:21:47 INFO client.HBaseAdmin: Enabled table default-tbl-FN-subjects 12/07/26 13:21:48 INFO client.HBaseAdmin: Started disable of default-tbl-FN-objects 12/07/26 13:21:50 INFO client.HBaseAdmin: Disabled default-tbl-FN-objects 12/07/26 13:21:50 INFO client.HBaseAdmin: Started enable of default-tbl-FN-objects 12/07/26 13:21:52 INFO client.HBaseAdmin: Enabled table default-tbl-FN-objects 12/07/26 13:21:53 INFO client.HBaseAdmin: Started disable of default-tbl-EMAIL-subjects 12/07/26 13:21:55 INFO client.HBaseAdmin: Disabled default-tbl-EMAIL-subjects 12/07/26 13:21:55 INFO client.HBaseAdmin: Started enable of default-tbl-EMAIL-subjects 12/07/26 13:21:57 INFO client.HBaseAdmin: Enabled table default-tbl-EMAIL-subjects 12/07/26 13:21:59 INFO client.HBaseAdmin: Started disable of default-tbl-EMAIL-objects 12/07/26 13:22:01 INFO client.HBaseAdmin: Disabled default-tbl-EMAIL-objects 12/07/26 13:22:01 INFO client.HBaseAdmin: Started enable of default-tbl-EMAIL-objects 12/07/26 13:22:03 INFO client.HBaseAdmin: Enabled table default-tbl-EMAIL-objects Exception in thread "main" com.talis.hbase.rdf.HBaseRdfException: No next element found: at com.talis.hbase.rdf.layout.verticalpartitioning.HBaseRdfSingleTableIterator.hasNext(HBaseRdfSingleTableIterator.java:74) at com.talis.hbase.rdf.iterator.IteratorOfIterators.next(IteratorOfIterators.java:56) at com.talis.hbase.rdf.layout.verticalpartitioning.HBaseRdfAllTablesIterator._next(HBaseRdfAllTablesIterator.java:35) at com.talis.hbase.rdf.layout.verticalpartitioning.HBaseRdfAllTablesIterator._next(HBaseRdfAllTablesIterator.java:25) at com.talis.hbase.rdf.iterator.AbstractIterator.hasNext(AbstractIterator.java:42) at com.hp.hpl.jena.util.iterator.Map1Iterator.hasNext(Map1Iterator.java:38) at com.hp.hpl.jena.util.iterator.WrappedIterator.hasNext(WrappedIterator.java:64) at com.talis.hbase.rdf.examples.VerticalPartitioningTest.main(Unknown Source) Caused by: java.lang.NullPointerException at com.talis.hbase.rdf.util.HBaseUtils.getNode(HBaseUtils.java:37) at com.talis.hbase.rdf.layout.verticalpartitioning.HBaseRdfSingleRowIterator._next(HBaseRdfSingleRowIterator.java:80) at com.talis.hbase.rdf.layout.verticalpartitioning.HBaseRdfSingleRowIterator._next(HBaseRdfSingleRowIterator.java:32) at com.talis.hbase.rdf.iterator.AbstractIterator.hasNext(AbstractIterator.java:42) at com.talis.hbase.rdf.layout.verticalpartitioning.HBaseRdfSingleTableIterator.hasNext(HBaseRdfSingleTableIterator.java:72) ... 7 more Java Result: 1

I ran your VerticalPartitioningTest.java for the second time, just commenting out the formatting line and hard-coded model generation lines. I was doing that to test whether I can query against previously-stored data or not. Am I doing anything wrong here? I would be very thankful if you can provide a code snippet which loads a model from the tables.

archerz commented 12 years ago

Vaibhav,

I fixed the issue by adding admin.disableTable(...) before the enable, which I guess is what you've done in your fix. However, I heard from one of the original HBase developers that disabling/enabling tables is considered an "anti-pattern" for an HBase application. I managed to speed-up the querying process orders of magnitude by just removing the admin.disableTable() and surrounding the enableTable() call in a try-catch statement, which effectively ignores the error caused by enabling an already-enabled table. That brought much better results for me.