带有已导入的类的Hadoop ClassNotFoundException(Hadoop ClassNotFoundException with class that's imported anymore)
我在Ubuntu 14.04上使用Hadoop 2.5.1和HBase 0.98.11
我曾经使用过HBase。 不幸的是,它没有按预期工作。 所以,我决定编写多输出和文件读取器而不是使用HBase。 在评论了所有与HBase相关的代码行(也不再将它们包含在javac -cp中)之后,我仍然得到异常“Error:java.lang.ClassNotFoundException:org.apache.hadoop.hbase.HBaseConfiguration”。
我也尝试格式化namenode,删除datanode和重新启动守护进程,但它不起作用。
我真的不知道为什么HBase仍然被包括在内,即使我评论并删除所有(我能想到的)HBase相关的东西。
提前感谢您的帮助。
I'm using Hadoop 2.5.1 with HBase 0.98.11 on Ubuntu 14.04
I was once using HBase. unfortunately it didn't work as expected. So, I decided to write the multioutput and filereader instead of using HBase. After commenting all HBase-related lines of code (also didn't include them in the javac -cp anymore), I still got the exception says "Error: java.lang.ClassNotFoundException: org.apache.hadoop.hbase.HBaseConfiguration".
I also tried format the namenode, delete datanode, and re-starting daemons, but it doesn't work.
I really have no idea why HBase still being included even if I comment and delete all (that I could think) of the HBase-related things.
Thank you in advance for every help.
原文:https://stackoverflow.com/questions/29897242
最满意答案
我知道这可能为时已晚,无法帮助您,但这是一个已知问题,他们的目标是修复V9.0。
I know this is likely too late to help you, but this is a known issue that they're targeting to fix in V9.0.
相关问答
更多-
是的,这是正确的行动顺序 做一个git pull origin master 如果没有冲突,请跳至5 解决冲突,保持适当的/远程更改 使用git add conflicted_file_1 conflicted_file_2 && git commit -m "Resolved merge conflicts"添加并提交冲突的文件git add conflicted_file_1 conflicted_file_2 && git commit -m "Resolved merge conflicts" 使用 ...
-
更新 :在GitLab 8.10中引入了手动操作。 从手册中“手动操作是一种特殊类型的作业,不会自动执行,它们需要由用户明确启动,手动操作可以从管道,构建,环境和部署视图启动,您可以执行相同的手动行动多次“。 手动操作的一个示例用法是部署到生产。 此答案的其余部分仅适用于Gitlab 8.9及更早版本。 历史答案: 它看起来好像8.9版本的Gitlab中没有手动部署/发布版本。 一种可能性是有一个受保护的分支触发释放。 有关受保护分支的信息,请参阅: http : //doc.gitlab.com/ce/w ...
-
这可能不是最好的解决方案,但我相信它会起作用。 您可以做的是获取使用HKSampleQuery手动添加的所有步骤。 这是一个例子。 func todayManuallyAddedStepsSteps(completion: (Double, NSError?) -> () ) { let type = HKSampleType.quantityTypeForIdentifier(HKQuantityTypeIdentifierStepCount) // The type of data ...
-
HDP 2.2手动安装namenode格式 - 参数个数错误?(HDP 2.2 manual installation namenode format - wrong number of parameters?)[2023-11-30]
要格式化NameNode,可以使用以下命令作为'hdfs'管理员用户运行: /usr/bin/hdfs namenode -format 要启动NameNode守护程序,请使用hadoop-daemon.sh脚本: /usr/hdp/current/hadoop-hdfs-namenode/../hadoop/sbin/hadoop-daemon.sh start namenode 如果您想引用特定的Hadoop配置目录,则“-config $ HADOOP_CONF_DIR”是一个可选参数。 For ... -
删除case语句中使用的单引号。 更改 case '1': 至 case 1: 其他人也一样。 '1'是字符常量,而1是整数常量。 使用ASCII编码时, '1'计算为数字49 ,显然不等于数字1 。 因此,这种case:当您输入1作为输入时,不执行分支。 Drop the single quotes used in the case statements. Change case '1': to case 1: Similarly for others. '1' is a characte ...
-
我知道这可能为时已晚,无法帮助您,但这是一个已知问题,他们的目标是修复V9.0。 https://gitlab.com/gitlab-org/gitlab-ce/issues/26360 I know this is likely too late to help you, but this is a known issue that they're targeting to fix in V9.0. https://gitlab.com/gitlab-org/gitlab-ce/issues/26360
-
问:问题2,我将走出困境,尽可能广泛地定义这个问题。 您似乎正在重新实现Spring Batch 。 Batch广泛支持定义和执行作业,持续工作进度和支持恢复。 它还具有记住状态和将状态从一个步骤移动到另一个步骤的背景,面向块的处理,以及通常经过深思熟虑和广泛的基础设施,包括一堆用于常见工作流的读者和编写者。 你可以随意忽略这个答案,我只是想把这个建议扔到那里,以免它让你大量工作。 re: question 2, I'm going to go out on a limb and take the wide ...
-
在Windows中,默认情况下禁用本地内核调试。(In Windows, local kernel debugging is disabled by default. Why?)[2022-04-30]
正如评论中所指出的,默认情况下禁用内核调试,因为它允许(甚至在64位Windows上)加载未真正签名(自签名)的内核驱动程序。 (并禁用PatchGuard,等等。) 当然,关于“管理员仍然生活在用户地区”的评论是无稽之谈。 评论者应该继续阅读Raymond Chen关于“ 在 这个 密闭 舱口 的 另 一边 ”的帖子。 请允许我用他的话说: 我想你知道这个故事是如何结束的。 如果您拥有管理员权限,那么您已经位于密闭舱口的另一侧。 您可以使用管理员权限来设置机器这一事实并不令人感兴趣,因为作为管理员, 您已 ... -
我如何不打印跳过的标签(How do I not print skipped tags)[2022-11-29]
一位比我更聪明的同事找到了答案。 Behave有一个命令行选项,不打印跳过的测试: -k 表现命令行选项 A co-worker, who is much smarter than I am, found the answer. Behave has a command line option to not print the skipped tests: -k Behave Command Line Options -
如果语句被跳过(If statement is skipped)[2022-06-05]
始终使用-Wall -Werror编译。 您的语句将在编译时被标记: warning: statement with no effect [-Wunused-value] Always compile with -Wall -Werror. Your statement would have been flagged at compile time: warning: statement with no effect [-Wunused-value]