Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Hadoop 在EC2实例中运行Sqoop时出错_Hadoop_Amazon Ec2_Sqoop - Fatal编程技术网

Hadoop 在EC2实例中运行Sqoop时出错

Hadoop 在EC2实例中运行Sqoop时出错,hadoop,amazon-ec2,sqoop,Hadoop,Amazon Ec2,Sqoop,我在我的EC2实例中安装了Sqoop,并参考了我的hadoop集群,它也工作得很好 我得到了错误错误:无法找到或加载主类org.apache.hadoop.mapreduce.v2.app.MRAppMaster,我使用该特定链接中给出的解决方案解决了这个问题。但不幸的是,我在运行Sqoop导入时遇到另一个错误: 容器以非零退出代码1退出。错误文件:prelaunch.err。 prelaunch.err的最后4096字节: stderr的最后4096字节: 错误:无法找到或加载主类org.ap

我在我的EC2实例中安装了Sqoop,并参考了我的hadoop集群,它也工作得很好

我得到了错误
错误:无法找到或加载主类org.apache.hadoop.mapreduce.v2.app.MRAppMaster
,我使用该特定链接中给出的解决方案解决了这个问题。但不幸的是,我在运行Sqoop导入时遇到另一个错误:

容器以非零退出代码1退出。错误文件:prelaunch.err。
prelaunch.err的最后4096字节:
stderr的最后4096字节:
错误:无法找到或加载主类org.apache.hadoop.mapred.YarnChild

请建议我如何克服这个错误

以下是我的sqoop-env.template.sh的外观:

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#     http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# included in all the hadoop scripts with source command
# should not be executable directly
# also should not be passed any arguments, since we need original $*
# Set Hadoop-specific environment variables here.
#Set path to where bin/hadoop is available
#export HADOOP_COMMON_HOME=$HOME/hadoop-3.1.0
#Set path to where hadoop-*-core.jar is available
#export HADOOP_MAPRED_HOME=$HOME/hadoop-3.1.0
#set the path to where bin/hbase is available
#export HBASE_HOME=
#Set the path to where bin/hive is available
#export HIVE_HOME=
#Set the path for where zookeper config dir is
#export ZOOCFGDIR=`

Hadoop安装在运行Sqoop的地方了吗?如果是,加载的是什么Java类路径?是的,hadoop已经安装并运行良好。我已经设置了java的所有类路径hadoop.Hmm。好的,但是
“找不到或加载类”
建议使用其他方法
JAVA\u HOME=/usr/JAVA/default export JAVA\u HOME export PATH=$PATH:$JAVA\u HOME/bin
这是JAVA路径非常感谢。hadoop 2.8.3是一个稳定的版本,它可以正常工作。