Discussion:
Couchbase/Hadoop connector: "Got error creating database manager/Error loading ManagerFactory"
Madeleine Piffaretti
2013-01-03 14:42:14 UTC
Permalink
Hey,

I try to use the Couchbase/Hadoop connector to import some data from HDFS
to Couchbase.
I use the cloudera distribution of hadoop, hbase,... (CDH4)
Couchbase-server 2.0 is installed and is running.
I have downloaded the connector and ran the install.sh script to add files
to sqoop.

But when I try to run some sqoop commands, I always have the same error:

sqoop-import --connect http://localhost:8091/pools --table DUMP

13/01/03 15:09:05 ERROR sqoop.ConnFactory: Error loading ManagerFactory
information from file /usr/lib/sqoop/conf/managers.d/couchsqoop-manager:
java.io.IOException: the content of connector file must be in form of
key=value
at org.apache.sqoop.ConnFactory.addManagersFromFile(ConnFactory.java:153)
at
org.apache.sqoop.ConnFactory.loadManagersFromConfDir(ConnFactory.java:228)
at org.apache.sqoop.ConnFactory.instantiateFactories(ConnFactory.java:83)
at org.apache.sqoop.ConnFactory.<init>(ConnFactory.java:60)
at com.cloudera.sqoop.ConnFactory.<init>(ConnFactory.java:36)
at org.apache.sqoop.tool.BaseSqoopTool.init(BaseSqoopTool.java:200)
at org.apache.sqoop.tool.ImportTool.init(ImportTool.java:83)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:464)
at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)
at org.apache.sqoop.Sqoop.main(Sqoop.java:238)
at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)

13/01/03 15:09:06 ERROR tool.BaseSqoopTool: Got error creating database
manager: java.io.IOException: No manager for connect string:
http://localhost:8091/pools
at org.apache.sqoop.ConnFactory.getManager(ConnFactory.java:119)
at org.apache.sqoop.tool.BaseSqoopTool.init(BaseSqoopTool.java:200)
at org.apache.sqoop.tool.ImportTool.init(ImportTool.java:83)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:464)
at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)
at org.apache.sqoop.Sqoop.main(Sqoop.java:238)
at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)

I don't understand the problem...
The couchsqoop-manager file contains a unique key/value pair :
com.couchbase.sqoop.manager.CouchbaseFactory=lib/couchsqoop-plugin-1.0.jar

Does anyone have used the couchbase/hadoop connector?

Thanx for your help!

Madeleine
Madeleine Piffaretti
2013-01-08 11:01:34 UTC
Permalink
I've solved my problem...
The couchsqoop-manager file contained a comments bloc at the beginning. I
have removed the comments bloc that was not interpreted by the program as a
comments bloc but it tried to parse a key/value couple... So now, the file
contains only the key/value couple.
Post by Madeleine Piffaretti
Hey,
I try to use the Couchbase/Hadoop connector to import some data from HDFS
to Couchbase.
I use the cloudera distribution of hadoop, hbase,... (CDH4)
Couchbase-server 2.0 is installed and is running.
I have downloaded the connector and ran the install.sh script to add files
to sqoop.
sqoop-import --connect http://localhost:8091/pools --table DUMP
13/01/03 15:09:05 ERROR sqoop.ConnFactory: Error loading ManagerFactory
java.io.IOException: the content of connector file must be in form of
key=value
at org.apache.sqoop.ConnFactory.addManagersFromFile(ConnFactory.java:153)
at
org.apache.sqoop.ConnFactory.loadManagersFromConfDir(ConnFactory.java:228)
at org.apache.sqoop.ConnFactory.instantiateFactories(ConnFactory.java:83)
at org.apache.sqoop.ConnFactory.<init>(ConnFactory.java:60)
at com.cloudera.sqoop.ConnFactory.<init>(ConnFactory.java:36)
at org.apache.sqoop.tool.BaseSqoopTool.init(BaseSqoopTool.java:200)
at org.apache.sqoop.tool.ImportTool.init(ImportTool.java:83)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:464)
at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)
at org.apache.sqoop.Sqoop.main(Sqoop.java:238)
at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)
13/01/03 15:09:06 ERROR tool.BaseSqoopTool: Got error creating database
http://localhost:8091/pools
at org.apache.sqoop.ConnFactory.getManager(ConnFactory.java:119)
at org.apache.sqoop.tool.BaseSqoopTool.init(BaseSqoopTool.java:200)
at org.apache.sqoop.tool.ImportTool.init(ImportTool.java:83)
at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:464)
at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)
at org.apache.sqoop.Sqoop.main(Sqoop.java:238)
at com.cloudera.sqoop.Sqoop.main(Sqoop.java:57)
I don't understand the problem...
com.couchbase.sqoop.manager.CouchbaseFactory=lib/couchsqoop-plugin-1.0.jar
Does anyone have used the couchbase/hadoop connector?
Thanx for your help!
Madeleine
Loading...