hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: run update to 0.96 hbase script error
Date Fri, 11 Jul 2014 13:47:15 GMT
Looks like the NPE came from this line:

      return FSUtils.getVersion(fs, rootDir).equals(HConstants.
FILE_SYSTEM_VERSION);

Is hbase.version accessible to NamespaceUpgrade (possibly a config issue) ?

Cheers


On Fri, Jul 11, 2014 at 12:45 AM, ch huang <justlooks@gmail.com> wrote:

> hi,maillist:
>         I want to move my 0.94 hbase table to 0.96 ,and i use distcp move
> all data to new hbase 0.96 cluster,when i run " sudo -u hbase hbase upgrade
> -execute " i get error ,why?
>
>
> 2014-07-11 15:36:37,524 INFO  [main] zookeeper.ZooKeeper: Client
> environment:java.library.path=/usr/lib/hadoop/lib/native
> 2014-07-11 15:36:37,524 INFO  [main] zookeeper.ZooKeeper: Client
> environment:java.io.tmpdir=/tmp
> 2014-07-11 15:36:37,524 INFO  [main] zookeeper.ZooKeeper: Client
> environment:java.compiler=<NA>
> 2014-07-11 15:36:37,524 INFO  [main] zookeeper.ZooKeeper: Client
> environment:os.name=Linux
> 2014-07-11 15:36:37,524 INFO  [main] zookeeper.ZooKeeper: Client
> environment:os.arch=amd64
> 2014-07-11 15:36:37,524 INFO  [main] zookeeper.ZooKeeper: Client
> environment:os.version=2.6.32-358.el6.x86_64
> 2014-07-11 15:36:37,525 INFO  [main] zookeeper.ZooKeeper: Client
> environment:user.name=hbase
> 2014-07-11 15:36:37,525 INFO  [main] zookeeper.ZooKeeper: Client
> environment:user.home=/var/run/hbase
> 2014-07-11 15:36:37,525 INFO  [main] zookeeper.ZooKeeper: Client
> environment:user.dir=/usr/lib/hadoop-mapreduce
> 2014-07-11 15:36:37,526 INFO  [main] zookeeper.ZooKeeper: Initiating client
> connection, connectString=192.168.10.24:2181,192.168.10.23:2181,
> 192.168.10.49:2181 sessionTimeout=90000 watcher=Check Live Processes.,
> quorum=192.168.10.24:2181,192.168.10.23:2181,192.168.10.49:2181,
> baseZNode=/hbase
> 2014-07-11 15:36:37,559 INFO  [main] zookeeper.RecoverableZooKeeper:
> Process identifier=Check Live Processes. connecting to ZooKeeper ensemble=
> 192.168.10.24:2181,192.168.10.23:2181,192.168.10.49:2181
> 2014-07-11 15:36:37,560 INFO  [main-SendThread(hz49:2181)]
> zookeeper.ClientCnxn: Opening socket connection to server hz49/
> 192.168.10.49:2181. Will not attempt to authenticate using SASL (unknown
> error)
> 2014-07-11 15:36:37,564 INFO  [main-SendThread(hz49:2181)]
> zookeeper.ClientCnxn: Socket connection established to hz49/
> 192.168.10.49:2181, initiating session
> 2014-07-11 15:36:37,579 INFO  [main-SendThread(hz49:2181)]
> zookeeper.ClientCnxn: Session establishment complete on server hz49/
> 192.168.10.49:2181, sessionid = 0x2471f249ccb0001, negotiated timeout =
> 40000
> 2014-07-11 15:36:37,606 INFO  [main] zookeeper.ZooKeeper: Session:
> 0x2471f249ccb0001 closed
> 2014-07-11 15:36:37,606 INFO  [main-EventThread] zookeeper.ClientCnxn:
> EventThread shut down
> 2014-07-11 15:36:37,613 INFO  [main] migration.UpgradeTo96: Starting
> Namespace upgrade
> 2014-07-11 15:36:38,759 INFO  [main] Configuration.deprecation:
> fs.default.name is deprecated. Instead, use fs.defaultFS
> Exception in thread "main" java.lang.NullPointerException
>         at
>
> org.apache.hadoop.hbase.migration.NamespaceUpgrade.verifyNSUpgrade(NamespaceUpgrade.java:547)
>         at
>
> org.apache.hadoop.hbase.migration.NamespaceUpgrade.upgradeTableDirs(NamespaceUpgrade.java:133)
>         at
>
> org.apache.hadoop.hbase.migration.NamespaceUpgrade.run(NamespaceUpgrade.java:561)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>         at
>
> org.apache.hadoop.hbase.migration.UpgradeTo96.executeTool(UpgradeTo96.java:222)
>         at
>
> org.apache.hadoop.hbase.migration.UpgradeTo96.executeUpgrade(UpgradeTo96.java:212)
>         at
> org.apache.hadoop.hbase.migration.UpgradeTo96.run(UpgradeTo96.java:134)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>         at
> org.apache.hadoop.hbase.migration.UpgradeTo96.main(UpgradeTo96.java:258)
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message