Accumulo Metadata
pinkstondevin Jan 17, 2014 9:04 AMHello,
I keep hitting a metadata failed to load with accumulo. I modified the RA with just two sysouts so i can see the roles and auths, thats why it is printing that out towards the bottom of the log. I am not sure why it isn't connecting, any thoughts? I pased the VDB and config for Accum as well.
thanks!
LOG:
08:51:52,800 INFO [org.teiid.RUNTIME] (ServerService Thread Pool -- 44) TEIID50006 Teiid translator "accumulo" added.
08:51:52,803 INFO [org.teiid.RUNTIME] (ServerService Thread Pool -- 44) TEIID50006 Teiid translator "solr" added.
08:51:52,839 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "accum-vdb.xml" (runtime-name: "accum-vdb.xml")
08:51:52,843 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015876: Starting deployment of "teiid-odata-8.7.0.Alpha1.war" (runtime-name: "teiid-odata-8.7.0.Alpha1.war")
08:51:52,845 INFO [org.jboss.as.remoting] (MSC service thread 1-3) JBAS017100: Listening on #.#.#.#:9999
08:51:52,846 INFO [org.jboss.as.remoting] (MSC service thread 1-4) JBAS017100: Listening on #.#.#.#:4447
08:51:52,853 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-5) JBAS015012: Started FileSystemDeploymentService for directory /home/funluser/jboss-eap-6.1/standalone/deployments
08:51:53,303 INFO [org.jboss.web] (ServerService Thread Pool -- 50) JBAS018210: Register web context: /odata
08:51:53,359 INFO [org.teiid.RUNTIME] (MSC service thread 1-1) TEIID50029 VDB accum.1 model "accumModel" metadata is currently being loaded. Start Time: 1/17/14 8:51 AM
08:51:53,366 WARN [org.teiid.RUNTIME] (teiid-async-threads - 1) TEIID50036 VDB accum.1 model "accumModel" metadata failed to load. Reason:TEIID31097 Metadata load requires a connection factory: TEIID30481 Failed to find the Connection Factory with JNDI name java:/accumuloDS. Please check the name or deploy the Connection Factory with specified name.
08:51:53,467 INFO [org.hibernate.validator.internal.util.Version] (ServerService Thread Pool -- 50) HV000001: Hibernate Validator 4.3.1.Final-redhat-1
08:51:53,590 INFO [org.jboss.resteasy.spi.ResteasyDeployment] (ServerService Thread Pool -- 50) Deploying javax.ws.rs.core.Application: class org.teiid.odata.TeiidODataApplication
08:51:55,676 WARN [org.apache.zookeeper.ClientCnxn] (MSC service thread 1-6-SendThread(#.#.#.#:2181)) SASL configuration failed: javax.security.auth.login.LoginException: unable to find LoginModule class: org.jboss.as.security.remoting.RemotingLoginModule from [Module "org.jboss.teiid.resource-adapter.accumulo:main" from local module loader @3b6f0be8 (finder: local module finder @7776cad3 (roots: /home/funluser/jboss-eap-6.1/modules,/home/funluser/jboss-eap-6.1/modules/system/layers/base))] Will continue connection to Zookeeper server without SASL authentication, if Zookeeper server allows it.
08:51:55,678 INFO [org.apache.zookeeper.ClientCnxn] (MSC service thread 1-6-SendThread(#.#.#.#:2181)) Opening socket connection to server #.#.#.#/#.#.#.#:2181
08:51:55,683 INFO [org.apache.zookeeper.ClientCnxn] (MSC service thread 1-6-SendThread(#.#.#.#:2181)) Socket connection established to #.#.#.#/#.#.#.#:2181, initiating session
08:51:55,691 INFO [org.apache.zookeeper.ClientCnxn] (MSC service thread 1-6-SendThread(#.#.#.#:2181)) Session establishment complete on server #.#.#.#/#.#.#.#:2181, sessionid = 0x143735d9e884d0f, negotiated timeout = 30000
08:51:55,750 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-6) JBAS010406: Registered connection factory java:/accumuloDS
08:51:55,755 INFO [org.jboss.as.connector.deployers.RaXmlDeployer] (MSC service thread 1-6) IJ020002: Deployed: file:/home/funluser/jboss-eap-6.1/modules/system/layers/base/org/jboss/teiid/resource-adapter/accumulo/main/./
08:51:55,757 INFO [org.jboss.as.connector.deployment] (MSC service thread 1-2) JBAS010401: Bound JCA ConnectionFactory [java:/accumuloDS]
08:51:55,786 INFO [stdout] (teiid-async-threads - 2) auth: [public]
08:51:55,787 INFO [stdout] (teiid-async-threads - 2) roles: [Ljava.lang.String;@284c1da6
08:51:55,816 INFO [org.jboss.as.server] (ServerService Thread Pool -- 27) JBAS018559: Deployed "accum-vdb.xml" (runtime-name : "accum-vdb.xml")
08:51:55,820 INFO [org.jboss.as.server] (ServerService Thread Pool -- 44) JBAS018559: Deployed "teiid-odata-8.7.0.Alpha1.war" (runtime-name : "teiid-odata-8.7.0.Alpha1.war")
08:51:55,998 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://#.#.#.#:9990/management
08:51:55,999 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://#.#.#.#:9990
08:51:55,999 INFO [org.jboss.as] (Controller Boot Thread) JBAS015874: JBoss Teiid + Teiid 8.4 (AS 7.2.0.Final-redhat-8) started in 9086ms - Started 322 of 398 services (75 services are passive or on-demand)
08:51:56,023 WARN [org.teiid.RUNTIME] (teiid-async-threads - 2) TEIID50036 VDB accum.1 model "accumModel" metadata failed to load. Reason:java.lang.NullPointerException: java.lang.NullPointerException
at org.teiid.translator.accumulo.AccumuloMetadataProcessor.processMetadata(AccumuloMetadataProcessor.java:103)
at org.teiid.translator.accumulo.AccumuloExecutionFactory.getMetadata(AccumuloExecutionFactory.java:76)
at org.teiid.translator.accumulo.AccumuloExecutionFactory.getMetadata(AccumuloExecutionFactory.java:39)
at org.teiid.query.metadata.NativeMetadataRepository.loadMetadata(NativeMetadataRepository.java:61) [teiid-engine-8.7.0.Alpha1.jar:8.7.0.Alpha1]
at org.teiid.query.metadata.ChainingMetadataRepository.loadMetadata(ChainingMetadataRepository.java:55) [teiid-engine-8.7.0.Alpha1.jar:8.7.0.Alpha1]
at org.teiid.jboss.VDBService$6.run(VDBService.java:403) [teiid-jboss-integration-8.7.0.Alpha1.jar:8.7.0.Alpha1]
at org.jboss.threads.SimpleDirectExecutor.execute(SimpleDirectExecutor.java:33)
at org.jboss.threads.QueueExecutor.runTask(QueueExecutor.java:806)
at org.jboss.threads.QueueExecutor.access$100(QueueExecutor.java:45)
at org.jboss.threads.QueueExecutor$Worker.run(QueueExecutor.java:826)
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_43]
at org.jboss.threads.JBossThread.run(JBossThread.java:122)
VDB:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <vdb name="accum" version="1"> <description>accum Test</description> <property name="UseConnectorMetaData" value="true"/> <model name="accumModel"> <source name="accumulo-connector" translator-name="accumulo" connection-jndi-name="java:/accumuloDS"/> </model> </vdb>
CONFIG:
<resource-adapter id="accumulo"> <module slot="main" id="org.jboss.teiid.resource-adapter.accumulo"/> <transaction-support>NoTransaction</transaction-support> <connection-definitions> <connection-definition class-name="org.teiid.resource.adapter.accumulo.AccumuloManagedConnectionFactory" jndi-name="java:/accumuloDS" enabled="true" use-java-context="true" pool-name="teiid-accumulo-ds"> <config-property name="ZooKeeperServerList"> #.#.#.#:2181 </config-property> <config-property name="Roles"> public </config-property> <config-property name="InstanceName"> accumInstance </config-property> <config-property name="Username"> root </config-property> <config-property name="Password"> pwd </config-property> </connection-definition> </connection-definitions> </resource-adapter>