Open archerz opened 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
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.
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
Hi,
Thanks for your time and attention Vaibhav.
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=
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.
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.
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.
However, running it the second time causes some exceptions to be thrown, indicating that some of the tables have not been disabled:
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.