org.apache.hadoop.hbase.client.NoServerForRegionException(转换中的ROOT区域)

时间:2013-07-23 06:17:57

标签: hbase bigdata sqoop

我尝试使用sqoop将一些数据从mysql导入hbase。 当进程运行时,我收到以下错误

13/07/23 12:38:58 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
13/07/23 12:38:58 INFO tool.CodeGenTool: Beginning code generation
13/07/23 12:38:59 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `pop` AS t LIMIT 1
13/07/23 12:38:59 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `pop` AS t LIMIT 1
13/07/23 12:38:59 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/local/hadoops
Note: /tmp/sqoop-hduser/compile/61f2e4f1d24e82a26240a5f1d4872baf/pop.java
     

使用或覆盖已弃用的API。       注意:使用-Xlint重新编译:弃用以获取详细信息。       13/07/23 12:39:00 INFO orm.CompilationManager:编写jar文件:/tmp/sqoop-hduser/compile/61f2e4f1d24e82a26240a5f1d4872baf/pop.jar       13/07/23 12:39:00 WARN manager.MySQLManager:看起来你是从mysql导入的。       13/07/23 12:39:00 WARN manager.MySQLManager:这种转移可以更快!使用--direct       13/07/23 12:39:00 WARN manager.MySQLManager:选择运行特定于MySQL的快速路径。       13/07/23 12:39:00 INFO manager.MySQLManager:将零DATETIME行为设置为convertToNull(mysql)       13/07/23 12:39:00 INFO mapreduce.ImportJobBase:开始导入pop       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:zookeeper.version = 3.4.5-1392090,建于09/30/2012 17:52   格林威治标准时间       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:host.name = master       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:java.version = 1.7.0_15       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:java.vendor = Oracle Corporation       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:java.home = / usr / lib / jvm / jdk1.7.0 / jre       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:java.class.path = / usr / local / hadoops / libexec /../ conf:/usr/lib/jvm/jdk1.7.0/lib /tools.jar:/usr/local/hadoops/libexec/..:/usr/local/hadoops/libexec/../hadoop-core-1.0.4.jar:/usr/local/hadoops/libexec/ .. /lib/asm-3.2.jar:/usr/local/hadoops/libexec/../lib/aspectjrt-1.6.5.jar:/usr/local/hadoops/libexec/../lib/aspectjtools-1.6.5的.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /公地的BeanUtils-1.7.0.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /公地BeanUtils的核心 - 1.8.0的.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /公地CLI-1.2.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /公地编解码器1.4.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /公地集合-3.2.1.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /公地配置-1.6.jar:在/ usr /本地/ hadoops /的libexec /../ LIB /公地守护-1.0.1.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /公共沼气池-1.8.jar:在/ usr /本地/ hadoops / libexec目录/ .. /lib/commons-el-1.0.jar:/usr/local/hadoops/libexec/../lib/commons-httpclient-3.0.1.jar:/usr/local /hadoops/libexec/../lib/commons-io-2.1.jar:/usr/local/hadoops/libexec/../lib/commons-lang-2.4.jar:/usr/local/hadoops/libexec/。 ./lib/commons-logging-1.1.1.jar:/usr/local/hadoops/libexec/../lib/commons-logging-api-1.0.4.jar:/usr/local/hadoops/libexec/。 ./lib/commons-math-2.1.jar:/usr/local/hadoops/libexec/../lib/commons-net-1.4.1.jar:/usr/local/hadoops/libexec/../lib/核 - 3.1.1.jar:在/ usr /本地/ hadoops /的libexec /../ LIB / hadoop的容量调度-1.0.4.jar:在/ usr /本地/ hadoops /的libexec /../ LIB / hadoop- fairscheduler-1.0.4.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB / Hadoop的thriftfs-1.0.4.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB / HSQLDB-1.8。 0.10.jar:在/ usr /本地/ hadoops /的libexec /../ LIB /杰克逊核-ASL-1.8.8.jar:在/ usr /本地/ hadoops /的libexec /../ LIB /杰克逊映射器-asl- 1.8.8.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /碧玉编译器5.5.12.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /碧玉运行时的5.5。 12.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB / jdeb-0.8.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /球衣核-1.8.jar:在/ usr /本地/ hadoops / libe XEC /../ LIB /新泽西州的JSON-1.8.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB /球衣服务器-1.8.jar:在/ usr /本地/ hadoops / libexec目录/../ lib中/jets3t-0.6.1.jar:/usr/local/hadoops/libexec/../lib/jetty-6.1.26.jar:/usr/local/hadoops/libexec/../lib/jetty-util-6.1 .26.jar:在/ usr /本地/ hadoops /的libexec /../ LIB / jsch-0.1.42.jar:在/ usr /本地/ hadoops /的libexec /../ LIB /的junit-4.5.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB / KFS-0.2.2.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB / log4j的-1.2.15.jar:在/ usr /本地/ hadoops / libexec目录/ ../lib/mockito-all-1.8.5.jar:/usr/local/hadoops/libexec/../lib/oro-2.0.8.jar:/usr/local/hadoops/libexec/../lib /servlet-api-2.5-20081211.jar:/usr/local/hadoops/libexec/../lib/slf4j-api-1.4.3.jar:/usr/local/hadoops/libexec/../lib/slf4j -log4j12-1.4.3.jar:在/ usr /本地/ hadoops /的libexec /../ LIB / xmlenc-0.52.jar:在/ usr /本地/ hadoops /的libexec /../ LIB / JSP-2.1 / JSP-2.1的.jar:在/ usr /本地/ hadoops / libexec目录/../ LIB / JSP-2.1 / JSP的API-2.1.jar:在/ usr /本地/ sqoops / bin中/../ CONF ::在/ usr /本地/ sqoops /bin/../lib/activation-1.1.jar:/usr/local/sqoops/bin/../lib/ant-contr IB-1.0b3.jar:在/ usr /本地/ sqoops / bin中/../ LIB /蚁蚀-1.0-jvm1.2.jar:在/ usr /本地/ sqoops / bin中/../ LIB / ASM-3.1的.jar:在/ usr /本地/ sqoops / bin中/../ LIB / Avro的-1.5.3.jar:在/ usr /本地/ sqoops / bin中/../ LIB / Avro的-IPC-1.5.3.jar:/ USR /本地/ sqoops / bin中/../ LIB / Avro的-mapred-1.5.3.jar:在/ usr /本地/ sqoops / bin中/../ LIB /公地的BeanUtils-1.7.0.jar:在/ usr /本地/ sqoops / bin中/../ LIB /公地BeanUtils的核心-1.8.0.jar:在/ usr /本地/ sqoops / bin中/../ LIB /公地CLI-1.2.jar:在/ usr /本地/ sqoops / bin中/../ LIB /公地编解码器1.4.jar:在/ usr /本地/ sqoops / bin中/../ LIB /公地集合-3.2.1.jar:在/ usr /本地/ sqoops /斌/ ../lib/commons-configuration-1.6.jar:/usr/local/sqoops/bin/../lib/commons-digester-1.8.jar:/usr/local/sqoops/bin/../lib/commons -el-1.0.jar:在/ usr /本地/ sqoops / bin中/../ LIB /公地httpclient的-3.1.jar:在/ usr /本地/ sqoops / bin中/../ LIB /公地IO-1.4.jar :在/ usr /本地/ sqoops / bin中/../ LIB /公地IO-2.1.jar:在/ usr /本地/ sqoops / bin中/../ LIB /公地郎2.5.jar:在/ usr /本地/ sqoops / bin中/../ LIB /共享记录-1.1.1.jar:在/ usr /本地/ sqoops / bin中/../ LIB /公地数学2.1.jar:/ USR /本地/ sqoops / bin中/../ LIB /公网-1.4.1.jar:在/ usr /本地/ sqoops / bin中/../ LIB /核心3.1.1.jar:在/ usr /本地/ sqoops / bin中/../ LIB /番石榴11.0.2.jar:在/ usr /本地/ sqoops / bin中/../ LIB / Hadoop的核心1.0.4.jar:在/ usr /本地/ sqoops /斌/ ../lib/hbase-0.94.8.jar:/usr/local/sqoops/bin/../lib/high-scale-lib-1.1.1.jar:/usr/local/sqoops/bin/ .. /lib/hsqldb-1.8.0.10.jar:/usr/local/sqoops/bin/../lib/httpclient-4.1.2.jar:/usr/local/sqoops/bin/../lib/httpcore-4.1 .3.jar:在/ usr /本地/ sqoops / bin中/../ LIB /杰克逊核心-ASL-1.7.3.jar:在/ usr /本地/ sqoops / bin中/../ LIB /杰克逊核心-ASL -1.8.8.jar:在/ usr /本地/ sqoops / bin中/../ LIB /杰克逊JAXRS-1.8.8.jar:在/ usr /本地/ sqoops / bin中/../ LIB /杰克逊映射器,ASL -1.7.3.jar:在/ usr /本地/ sqoops / bin中/../ LIB /杰克逊映射器-ASL-1.8.8.jar:在/ usr /本地/ sqoops / bin中/../ LIB /杰克逊-XC -1.8.8.jar:在/ usr /本地/ sqoops / bin中/../ LIB /火腿运行时-2.3.1.jar:在/ usr /本地/ sqoops / bin中/../ LIB /碧玉编译器5.5 .23.jar:在/ usr /本地/ sqoops / bin中/../ LIB /碧玉运行时5.5.23.jar:在/ usr /本地/ sqoops / bin中/../ LIB / JAXB的API-2.1.jar :在/ usr /本地/ sqoops /箱/../lib/jaxb-impl-2.2.3-1.jar:/usr/local/sqoops/bin/../lib/jersey-core-1.8.jar:/usr/local/sqoops/bin/。 ./lib/jersey-json-1.8.jar:/usr/local/sqoops/bin/../lib/jersey-server-1.8.jar:/usr/local/sqoops/bin/../lib/jettison- 1.1.jar:在/ usr /本地/ sqoops / bin中/../ LIB /码头-6.1.26.jar:在/ usr /本地/ sqoops / bin中/../ LIB /码头-UTIL-6.1.26.jar: /usr/local/sqoops/bin/../lib/jopt-simple-3.2.jar:/usr/local/sqoops/bin/../lib/jruby-complete-1.6.5.jar:/usr/local /sqoops/bin/../lib/jsp-2.1-6.1.14.jar:/usr/local/sqoops/bin/../lib/jsp-api-2.1-6.1.14.jar:/usr/local /sqoops/bin/../lib/jsr305-1.3.9.jar:/usr/local/sqoops/bin/../lib/junit-4.10-HBASE-1.jar:/usr/local/sqoops/bin /../lib/libthrift-0.8.0.jar:/usr/local/sqoops/bin/../lib/log4j-1.2.16.jar:/usr/local/sqoops/bin/../lib/度量芯-2.1.2.jar:在/ usr /本地/ sqoops / bin中/../ LIB / MySQL的连接器的Java-5.1.25-bin.jar:在/ usr /本地/ sqoops / bin中/../ LIB /网状-3.2.4.Final.jar:在/ usr /本地/ sqoops / bin中/../ LIB / paranamer-2.3.jar:在/ usr /本地/ sqoops / bin中/../ LIB / protobuf的,基于Java 2.4.0a.jar:在/ usr /本地/平方米哎呀/ bin中/../ LIB / servlet的API-2.5-6.1.14.jar:在/ usr /本地/ sqoops / bin中/../ LIB / SLF4J-API-1.4.3.jar:在/ usr /本地/ sqoops / bin中/../ LIB / SLF4J-log4j12-1.4.3.jar:在/ usr /本地/ sqoops / bin中/../ LIB /活泼的Java-1.0.3.2.jar:在/ usr /本地/ sqoops /仓/../ LIB / STAX-API-1.0.1.jar:在/ usr /本地/ sqoops / bin中/../ LIB /速度-1.7.jar:在/ usr /本地/ sqoops / bin中/../ LIB /xmlenc-0.52.jar:/usr/local/sqoops/bin/../lib/zookeeper-3.4.5.jar:/usr/local/sqoops/bin/../sqoop-1.4.3.jar:/ USR /本地/ sqoops / bin中/../ sqoop测试-1.4.3.jar:       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:java.library.path = / usr / local / hadoops / libexec /../ lib / native / Linux-amd64-64       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:java.io.tmpdir = / tmp       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:java.compiler =       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:os.name = Linux       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:os.arch = amd64       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:os.version = 3.5.0-23-generic       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:user.name = hduser       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:user.home = / home / hduser       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:客户端环境:user.dir = / home / hduser       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:启动客户端连接,connectString = localhost:2181 sessionTimeout = 180000   观察者= hconnection       13/07/23 12:39:00 INFO zookeeper.RecoverableZooKeeper:这个过程的标识符是6256 @ Master       13/07/23 12:39:00 INFO zookeeper.ClientCnxn:打开服务器ip6-localhost / 127.0.0.1的套接字连接:2181。不会尝试   使用SASL进行身份验证(未知错误)       13/07/23 12:39:00 INFO zookeeper.ClientCnxn:建立到ip6-localhost / 127.0.0.1的套接字连接:2181,启动会话       13/07/23 12:39:00 INFO zookeeper.ClientCnxn:在服务器ip6-localhost / 127.0.0.1上完成会话建立:2181,sessionid =   0x14009b9169f0009,协商超时= 180000       13/07/23 12:39:00 INFO zookeeper.ZooKeeper:启动客户端连接,connectString = localhost:2181 sessionTimeout = 180000   watcher=catalogtracker-on-org.apache.hadoop.hbase.client.HConnectionManager$HConnectionImplementation@3b48a380       13/07/23 12:39:00 INFO zookeeper.RecoverableZooKeeper:这个过程的标识符是6256 @ Master       13/07/23 12:39:00 INFO zookeeper.ClientCnxn:打开服务器ip6-localhost / 127.0.0.1的套接字连接:2181。不会尝试   使用SASL进行身份验证(未知错误)       13/07/23 12:39:00 INFO zookeeper.ClientCnxn:建立到ip6-localhost / 127.0.0.1的套接字连接:2181,启动会话       13/07/23 12:39:00 INFO zookeeper.ClientCnxn:在服务器ip6-localhost / 127.0.0.1上完成会话建立:2181,sessionid =   0x14009b9169f000a,协商超时= 180000       13/07/23 12:49:01 INFO zookeeper.ZooKeeper:Session:0x14009b9169f000a已关闭       13/07/23 12:49:01 INFO zookeeper.ClientCnxn:EventThread关闭       13/07/23 12:49:01错误工具.ImportTool:遇到运行导入作业的IOException:   org.apache.hadoop.hbase.client.NoServerForRegionException:无法执行   在10次尝试后找到区域。         at org.apache.hadoop.hbase.client.HConnectionManager $ HConnectionImplementation.locateRegionInMeta(HConnectionManager.java:991)         at org.apache.hadoop.hbase.client.HConnectionManager $ HConnectionImplementation.locateRegion(HConnectionManager.java:896)         at org.apache.hadoop.hbase.client.HConnectionManager $ HConnectionImplementation.locateRegion(HConnectionManager.java:857)         在org.apache.hadoop.hbase.client.HTable.finishSetup(HTable.java:233)         在org.apache.hadoop.hbase.client.HTable。(HTable.java:173)         在org.apache.hadoop.hbase.catalog.MetaReader.getHTable(MetaReader.java:201)         在org.apache.hadoop.hbase.catalog.MetaReader.getMetaHTable(MetaReader.java:227)         在org.apache.hadoop.hbase.catalog.MetaReader.fullScan(MetaReader.java:722)         在org.apache.hadoop.hbase.catalog.MetaReader.fullScan(MetaReader.java:184)         在org.apache.hadoop.hbase.catalog.MetaReader.tableExists(MetaReader.java:450)         在org.apache.hadoop.hbase.client.HBaseAdmin.tableExists(HBaseAdmin.java:250)         在org.apache.sqoop.mapreduce.HBaseImportJob.jobSetup(HBaseImportJob.java:194)         在org.apache.sqoop.mapreduce.ImportJobBase.runImport(ImportJobBase.java:219)         在org.apache.sqoop.manager.SqlManager.importTable(SqlManager.java:545)         在org.apache.sqoop.manager.MySQLManager.importTable(MySQLManager.java:111)         在org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:403)         在org.apache.sqoop.tool.ImportTool.run(ImportTool.java:476)         在org.apache.sqoop.Sqoop.run(Sqoop.java:145)         在org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)         在org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)         在org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)         在org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)         在org.apache.sqoop.Sqoop.main(Sqoop.java:238)

在过渡区'中,我收到了以下信息: -ROOT - ,, 0.70236052 state = OFFLINE,ts = Tue Jul 23 12:42:08 WIT 2013(594s ago),server = null

任何人都可以帮我解决这个问题吗?我没有想法。 一周后我得到了一个演讲。 谢谢你的帮助。

1 个答案:

答案 0 :(得分:0)

看起来你的RegionServer有些问题。也许,RegionServer的会话已经过期或者已经死了,因此HMaster无法分配此RegionServer持有的区域。查看RegionServer日志会很有帮助。您可能会在HMaster日志中看到此区域已分配的位置。然后转到RegionServer的UI,看看你是否看到了这个区域?

BTW,您有多少个节点?数据是否太大而无法存储在当前群集中?