草庐IT

output-directory

全部标签

java - 以独立模式运行 Hadoop : bin/hadoop: line 350:/usr/local/java/jdk1. 8.O/bin/java: No such file or directory

我知道这类问题被问了很多次,但我还是想不出我的具体问题我已经安装了Hadoop,并获得了所有需要的jar:yosh@yosh-VirtualBox:~/hadoop$lshadoop-1.2.1hadoop-1.2.1.tar.gzyosh@yosh-VirtualBox:~/hadoop/hadoop-1.2.1$lsbinhadoop-ant-1.2.1.jarinputREADME.txtbuild.xmlhadoop-client-1.2.1.jarivysbinc++hadoop-core-1.2.1.jarivy.xmlshareCHANGES.txthadoop-exam

java - 使用 java :no output 从 hadoop 读取文件

我正在尝试从HDFS读取和写入文件。首先,我试图阅读它并将其显示在控制台上。它运行时没有给出任何错误、警告,但它也没有在控制台上打印文件中的数据,我的文件已经保存在hdfs中,我可以在用户界面上看到它。我认为我给出的路径存在一些问题,我不确定,因为我是第一次将hadoop连接到java。我正在使用eclipse作为IDE。有人可以调查一下吗?我也尝试为名称节点提供50075端口号,但这也没有用。编辑:谁能告诉我如何在java中给出正确的路径以访问存储在hdfs中的文件?我遇到了这个异常文件file:/localhost:54310/user/hduser/project11/a.txt

hadoop - pig : How to save relation when "Scalar has more than two rows in the output"

因此,我正在处理一个包含http流量条目的日志文件。我正在尝试确定每个状态代码一天中每个小时的记录数。所以,我的想法输出是这样的:0(200,234)(201,100)(404,5553)1(200,2234)(201,1100)(404,53)....我有以下转换:e1=groupLINESBY(hour,statusCode);e2=foreache1generategroup.hour,group.statusCode,COUNT(LINES);e3=groupe2byhour;e4=foreache3{statusCount=foreache2generatestatusCod

mysql - hadoop/配置单元 :File is getting transforming into a directory

问题:如您所见,在输出中,input.txt已从文件变为目录。这怎么可能?在某些情况下,在配置单元中创建表的行为是否有所不同?我有以下简单的shell脚本来运行hive/hadoop脚本#!/bin/bashset-xvhadoopfs-rmr/user/myloginname/input.txthadoopfs-putinput.txt/user/myloginname/input.txthadoopfs-ls/user/myloginname/hive-S-fhive_script.hqlhadoopfs-ls/user/myloginname/hive脚本本身只是创建一个外部表c

hadoop - HDFS NFS 网关 mount.nfs : Input/output error?

HDFSNFSGateWaymount.nfs:输入/输出错误?1.报错如下:[root@xxsbin]#mount-tnfs-overs=3,proto=tcp,nolock,noacl,synclocalhost://hdfs_ymount.nfs:Input/outputerror2016-03-1015:12:06,350WARNorg.apache.hadoop.hdfs.nfs.nfs3.RpcProgramNfs3:Exception804org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.au

bash - 在 HDFS : How to check if 2 directories have same parent directory

是否有HDFS命令来检查HDFS中的2个目录是否具有共同的父目录。例如:$hadoopfs-ls-R/user/username/data//user/username/data/LIST_1539724717/SUBLIST_1533057294,/user/username/data/LIST_1539724717/SUBLIST_1533873826/UI,/user/username/data/LIST_1539724717/SUBLIST_1533873826/NEWDATA/A,/user/username/data/LIST_1539724717/SUBLIST_1533

hadoop - 无法为输出方法 'output_xml.properties' 加载属性文件 'xml'(检查 CLASSPATH)

我正在尝试使用Apacheoozie创建一个sqoop工作流,但是当我执行脚本时出现以下错误:Causedby:com.sun.org.apache.xml.internal.serializer.utils.WrappedRuntimeException:Couldnotloadtheproperyfile'output_xml.properties'foroutputmethod'xml'(checkCLASSPATH)当我检查日志时,它说错误是由以下原因引起的:Causedby:com.sun.org.apache.xml.internal.serializer.utils.Wr

hadoop - 如何解决错误 "file:/user/hive/warehouse/records is not a directory or unable to create one"?

hive>CREATETABLErecords(yearSTRING,temperatureINT,qualityINT)>ROWFORMATDELIMITED>FIELDSTERMINATEDBY'\t';FAILED:ExecutionError,returncode1fromorg.apache.hadoop.hive.ql.exec.DDLTask.MetaException(message:file:/user/hive/warehouse/recordsisnotadirectoryorunabletocreateone)如何解决错误?/user/hive/warehous

hadoop - 象夫 : output file giving error in Hadoop

在Hadoop上运行Mahout时出现以下错误。命令:mahoutrecommenditembased-sSIMILARITY_LOGLIKELIHOOD-i/user/inp-o/user/op--numRecommendations5错误:Runningonhadoop,using/usr/local/hadoop/bin/hadoopandHADOOP_CONF_DIR=MAHOUT-JOB:/opt/apache-mahout-distribution-0.11.0/examples/target/mahout-examples-0.11.0-job.jar15/11/0517

Hadoop copyFromLocal : '.' : No such file or directory

我将Windows8与cloudera-quickstart-vm-5.4.2-0虚拟机一起使用。我下载了一个文本文件words.txt到下载文件夹中。我将目录更改为下载并使用hadoopfs-copyFromLocalwords.txt我收到没有这样的文件或目录错误。谁能向我解释为什么会这样/如何解决这个问题?这是终端的屏幕截图:有人告诉我当Hadoop处于安全模式时会出现此错误,但我已确保安全模式已关闭。 最佳答案 这是因为hdfs:///user/cloudera不存在。运行hdfsdfs-ls可能会出现类似的错误。如果没有指