TroubleShooting
ThisIsNobody
这个作者很懒,什么都没留下…
展开
-
Hadoop org.apache.commons.logging.LogFactory
问题:Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:178) at WordCountRunner....原创 2018-06-23 15:49:49 · 1552 阅读 · 0 评论 -
Hadoop java.lang.NoSuchMethodException: WordCountHello$WCMapper.<init>()
问题:java.lang.Exception: java.lang.RuntimeException: java.lang.NoSuchMethodException: WordCountHello$WCMapper.<init>() at org.apache.hadoop.mapred.LocalJobRunner$Job.runTasks(LocalJobRunner.java...原创 2018-06-27 09:30:50 · 999 阅读 · 0 评论 -
scala.Predef$.refArrayOps([Ljava/lang/Object;)Lscala/collection/mutable/ArrayOps
将scala-sdk从2.12换为2.11File -> Project Structure -> Global libraries -> Remove SDK -> Rebuild.原创 2018-07-08 19:43:19 · 11600 阅读 · 0 评论 -
Hadoop org.apache.hadoop.security.AccessControlException
问题:org.apache.hadoop.security.AccessControlException: Permission denied: user=hadoop, access=WRITE, inode="/":root:supergroup:drwxr-xr-x解决:修改目录操作权限hadoop fs -chmod 777 /wordcount...原创 2018-06-20 15:56:49 · 228 阅读 · 0 评论 -
Shell Notepad++导致报错:#!/bin/bash: 坏的解释器: 没有那个文件或目录
1) 编码 -> 使用UTF-8编码2) 编辑 -> 文档格式转换,转换为UNIX格式原创 2018-06-28 14:16:24 · 1504 阅读 · 0 评论 -
Shell 条件判断中的空格
下面两段代码的不同,条件判断要加空格#!/bin/bash#获取输入read -p "username:" USERread -p "password:" PASSWORD#验证if [ $USER = "root" -a $PASSWORD = "root" ] #这里=号有空格正常判断then echo "welcome!"else echo "wrong us.原创 2018-06-28 14:30:36 · 4112 阅读 · 0 评论 -
Hive show tables找不到原来建的表
因为Hive默认在哪个目录启动Hive,就在该目录生成一个metastore_db,只有在该目录下才能看到表原创 2018-06-28 22:16:50 · 5186 阅读 · 0 评论