java.io.IOException: HADOOP_HOME or hadoop.home.dir are not set

java.io.IOException: HADOOP_HOME or hadoop.home.dir are not set.

    15   at org.apache.hadoop.util.Shell.checkHadoopHome(Shell.java:302)

    16   at org.apache.hadoop.util.Shell.<clinit>(Shell.java:327)

    17   at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:79)

    18   at org.apache.hadoop.security.Groups.parseStaticMapping(Groups.java:104)

    19   at org.apache.hadoop.security.Groups.<init>(Groups.java:86)

    20   at org.apache.hadoop.security.Groups.<init>(Groups.java:66)

    21   at org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:280)

    22   at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:269)

    23   at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:246)

    24   at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:775)

    25   at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:760)

    26   at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:633)

    27   at org.apache.hadoop.hbase.security.User$SecureHadoopUser.<init>(User.java:260)

    28   at org.apache.hadoop.hbase.security.User$SecureHadoopUser.<init>(User.java:256)

    29   at org.apache.hadoop.hbase.security.User.getCurrent(User.java:160)

    30   at org.apache.hadoop.hbase.security.UserProvider.getCurrent(UserProvider.java:89)

    31   at org.apache.hadoop.hbase.client.HConnectionManager.createConnection(HConnectionManager.java:306)

    32   at com.cobub.bigdata.common.Config.<clinit>(Config.java:41)

 

    33   at com.cobub.bigdata.mr.BitmapStatistics.main(BitmapStatistics.java:42)

你可能感兴趣的:(exception)