Comments (3)
Might be something to do with build because samples are still on vanilla hadoop 2.2.0 and cdh5 might be newer. Did you found container logs(stdout and stderr logs for application master) which might tell more. You could also try our IO guides https://spring.io/guides?filter=yarn. Building Spring YARN Projects with Gradle/Maven guides have instructions howto build against different distros and cdh5 is one supported.
from spring-hadoop-samples.
Finally,I made it work.(Though still there is something that I cannot understand)
There was ClassNotFound(log4j,org.apache.hadoop.conf.Configuration) exception in stderr(Appmaster.stderr) for application master log,So I commented out the "hadoopruntime.exclude" declaration in build.gradle,after that the app finished and succeeded.
By the way,the following should be noticed.
1.the following env viariables ,which seems to be used when master is started,are not set automatically when cdh is installed,I had to set them manually.
- HADOOP_CONF_DIR
- HADOOP_COMMON_HOME
- HADOOP_HDFS_HOME
- HADOOP_MAPRED_HOME
- HADOOP_YARN_HOME
2.As with this cloudera issue:Container erases temporary file and shell script immediately after execution,you have to monitor file to get the log file.
from spring-hadoop-samples.
After digging nearly two days,I think I found the reason why ClassNotFound(class in commons-logging lib) exception occured in the simple yarn app.
Firstly,we should definitely set the yarn.application.classpath value (through adding yarn-site.xml to the classpath of the client) according to cluster env in the app client .If not so,the default value(eg.$HADOOP_COMMON_HOME/share/hadoop/common/*,...) will be used,which is not the right path in many distros(at least CDH5)
Secondly,Don't use multiple-line values for "yarn.application.classpath" ,in yarn-site.xml,in my cluster (cdh5,java7,centos),classpath could not be fully and correctly parsed if we did so.
unfortunately the yarn-site.xml in cdh5 cluster is containing the multi-line value,which I think is a bug.
from spring-hadoop-samples.
Related Issues (20)
- Issue while writing data to hdfs from remote client HOT 5
- Protocol message contained an invalid tag HOT 3
- hiveAppWithApacheLogs demo hangs on: Returning cached instance of singleton bean 'hiveRunner'
- I need a Hive 13, HiverServer2 sample HOT 1
- I need a SpringBatch Hive 13, HiverServer2 sample HOT 2
- I need a SpringBatch Hive 13, HiverServer2 sample
- spring-yarn examples not finding / using hadoop classpath HOT 5
- Hadoop Spring mapreduce multiple inputs and mappers in a job
- Can I have a working sample for spring hbase using hbaseTemplate with lastest stable hBase build? HOT 2
- Working for Hive2, error: org.apache.thrift.TApplicationException: Invalid method name: 'execute'
- Exceptions for Running HiveApp in Mac
- Hbase Connection Issue?
- issue while reading data on hdfs from remote HOT 1
- hbase running app
- Unable to initialize 'javax.el.ExpressionFactory' after update Spring Boot to 1.5.2 HOT 4
- Mapreduce program could only be replicated to 0 nodes instead of minReplication (=1)
- new Interface of Hbase
- Connection Refused in Mapreduce sample HOT 3
- Debug hive in eclipse,it didn't work.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-hadoop-samples.