我有一个包含2个节点的YARN群集。我已经验证了YARN集群运行正常。我正在尝试部署XD。
我按照最新的XD指南中的步骤配置了Zk,Postgres,Redis并相应地修改了servers.yml。执行启动命令后没有错误消息。但是在执行启动管理和启动容器后,我没有看到任何应用程序在YARN中运行。在我配置的纱线applicationDir
中也没有看到任何内容。
java version "1.7.0_55"
OS version Linux 2.6.32-431.20.3.el6.x86_64 x86_64 GNU/Linux, RHEL 6.5
我在哪里可以看到日志消息?
关于安装的一般性问题
我应该在哪里复制YARN二进制文件?在任何YARN群集节点中?还是所有人?或者我可以只在我的本地复制,只是纱线推送将照顾实际的安装?
是否应在所有YARN节点上或仅在资源管理器上创建applicationDir
?
如果XD指南可以明确地调出这些,那就太棒了。
[jmupfnd@awsupfxdqa1nodejs1 bin]$ cd ..
[jmupfnd@awsupfxdqa1nodejs1 spring-xd-1.0.1.RELEASE-yarn]$ bin/xd-yarn push
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.1.7.RELEASE)
2014-12-01 09:07:54,799 INFO [ConfiguringBeanFactoryPostProcessor] - No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2014-12-01 09:07:54,808 INFO [ConfiguringBeanFactoryPostProcessor] - No bean named 'taskExecutor' has been explicitly defined. Therefore, a default SyncTaskExecutor will be created.
2014-12-01 09:07:55,856 INFO [SpringYarnConfiguration] - Enabling CLIENT for Yarn
2014-12-01 09:07:55,875 INFO [SpringYarnConfiguration] - We couldn't figure out if we could use existing configuration
2014-12-01 09:07:55,875 INFO [SpringYarnConfiguration] - Building configuration for bean 'yarnConfiguration'
2014-12-01 09:07:55,907 INFO [SpringYarnConfigBuilder] - Existing yarnConfiguration: null
2014-12-01 09:07:56,084 INFO [ConfigurationFactoryBean] - Overwriting fsUri=[file:///] with fsUri=[hdfs://10.94.70.3:8020]
2014-12-01 09:07:56,085 INFO [ConfigurationFactoryBean] - Overwriting rmAddress=[0.0.0.0:8032] with rmAddress=[10.94.70.3:8032]
2014-12-01 09:07:56,091 INFO [SpringYarnConfigBuilder] - Setting configuration for SpringYarnConfigs: fs.defaultFS=hdfs://10.94.70.3:8020 yarn.resourcemanager.address=10.94.70.3:8032 Configuration: core-default.xml, core-site.xml, yarn-default.xml, yarn-site.xml
2014-12-01 09:07:56,097 INFO [EnvironmentFactoryBean] - Adding CLASSPATH=./*
2014-12-01 09:07:56,431 WARN [NativeCodeLoader] - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2014-12-01 09:07:57,146 INFO [AbstractResourceLocalizer] - About to copy localized files
[jmupfnd@awsupfxdqa1nodejs1 spring-xd-1.0.1.RELEASE-yarn]$ ls -l data
total 0
[jmupfnd@awsupfxdqa1nodejs1 spring-xd-1.0.1.RELEASE-yarn]$ ls -l
total 124564
drwxr-xr-x 2 jmupfnd gjmupfnd 4096 Dec 1 08:57 bin
drwxr-xr-x 2 jmupfnd gjmupfnd 4096 Dec 1 09:05 config
-rw-r--r-- 1 jmupfnd gjmupfnd 417 Oct 2 11:36 custom-modules.zip
drwxr-x--- 2 jmupfnd gjmupfnd 4096 Dec 1 08:56 data
drwxr-xr-x 2 jmupfnd gjmupfnd 4096 Oct 2 11:36 lib
-rw-r--r-- 1 jmupfnd gjmupfnd 49114 Oct 2 11:07 LICENSE
-rw-r----- 1 jmupfnd gjmupfnd 7338 Dec 1 09:07 manifest.yml
-rw-r--r-- 1 jmupfnd gjmupfnd 1456 Oct 2 11:07 README
-rw-r--r-- 1 jmupfnd gjmupfnd 127340310 Oct 2 11:36 spring-xd-yarn-1.0.1.RELEASE.zip
[jmupfnd@awsupfxdqa1nodejs1 spring-xd-1.0.1.RELEASE-yarn]$ ./bin/xd-yarn start admin
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.1.7.RELEASE)
2014-12-01 09:08:43,382 INFO [ConfiguringBeanFactoryPostProcessor] - No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2014-12-01 09:08:43,403 INFO [ConfiguringBeanFactoryPostProcessor] - No bean named 'taskExecutor' has been explicitly defined. Therefore, a default SyncTaskExecutor will be created.
2014-12-01 09:08:44,516 INFO [SpringYarnConfiguration] - Enabling CLIENT for Yarn
2014-12-01 09:08:44,530 INFO [SpringYarnConfiguration] - We couldn't figure out if we could use existing configuration
2014-12-01 09:08:44,531 INFO [SpringYarnConfiguration] - Building configuration for bean 'yarnConfiguration'
2014-12-01 09:08:44,556 INFO [SpringYarnConfigBuilder] - Existing yarnConfiguration: null
2014-12-01 09:08:44,734 INFO [ConfigurationFactoryBean] - Overwriting fsUri=[file:///] with fsUri=[hdfs://10.94.70.3:8020]
2014-12-01 09:08:44,735 INFO [ConfigurationFactoryBean] - Overwriting rmAddress=[0.0.0.0:8032] with rmAddress=[10.94.70.3:8032]
2014-12-01 09:08:44,741 INFO [SpringYarnConfigBuilder] - Setting configuration for SpringYarnConfigs: fs.defaultFS=hdfs://10.94.70.3:8020 yarn.resourcemanager.address=10.94.70.3:8032 Configuration: core-default.xml, core-site.xml, yarn-default.xml, yarn-site.xml
2014-12-01 09:08:44,748 INFO [EnvironmentFactoryBean] - Adding CLASSPATH=./*
2014-12-01 09:08:45,156 WARN [NativeCodeLoader] - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2014-12-01 09:08:46,043 INFO [AbstractYarnClient] - submitApplication, got applicationId=[application_1417028324995_0004]
2014-12-01 09:08:46,044 INFO [AbstractResourceLocalizer] - Setting stagingId=application_1417028324995_0004
2014-12-01 09:08:46,044 INFO [AbstractResourceLocalizer] - Marking distributed state false
2014-12-01 09:08:46,044 INFO [AbstractResourceLocalizer] - About to resolve localized files
[jmupfnd@awsupfxdqa1nodejs1 spring-xd-1.0.1.RELEASE-yarn]$ yarn application -list
14/12/01 09:09:03 INFO client.RMProxy: Connecting to ResourceManager at /10.94.70.3:8032
14/12/01 09:09:03 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Total number of applications (application-types: [] and states: [SUBMITTED, ACCEPTED, RUNNING]):0
Application-Id Application-Name Application-Type User Queue State Final-State Progress Tracking-URL
[jmupfnd@awsupfxdqa1nodejs1 spring-xd-1.0.1.RELEASE-yarn]$ ./bin/xd-yarn start container
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.1.7.RELEASE)
2014-12-01 09:09:44,199 INFO [ConfiguringBeanFactoryPostProcessor] - No bean named 'taskScheduler' has been explicitly defined. Therefore, a default ThreadPoolTaskScheduler will be created.
2014-12-01 09:09:44,210 INFO [ConfiguringBeanFactoryPostProcessor] - No bean named 'taskExecutor' has been explicitly defined. Therefore, a default SyncTaskExecutor will be created.
2014-12-01 09:09:45,307 INFO [SpringYarnConfiguration] - Enabling CLIENT for Yarn
2014-12-01 09:09:45,326 INFO [SpringYarnConfiguration] - We couldn't figure out if we could use existing configuration
2014-12-01 09:09:45,326 INFO [SpringYarnConfiguration] - Building configuration for bean 'yarnConfiguration'
2014-12-01 09:09:45,353 INFO [SpringYarnConfigBuilder] - Existing yarnConfiguration: null
2014-12-01 09:09:45,532 INFO [ConfigurationFactoryBean] - Overwriting fsUri=[file:///] with fsUri=[hdfs://10.94.70.3:8020]
2014-12-01 09:09:45,533 INFO [ConfigurationFactoryBean] - Overwriting rmAddress=[0.0.0.0:8032] with rmAddress=[10.94.70.3:8032]
2014-12-01 09:09:45,539 INFO [SpringYarnConfigBuilder] - Setting configuration for SpringYarnConfigs: fs.defaultFS=hdfs://10.94.70.3:8020 yarn.resourcemanager.address=10.94.70.3:8032 Configuration: core-default.xml, core-site.xml, yarn-default.xml, yarn-site.xml
2014-12-01 09:09:45,547 INFO [EnvironmentFactoryBean] - Adding CLASSPATH=./*
2014-12-01 09:09:45,940 WARN [NativeCodeLoader] - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2014-12-01 09:09:46,861 INFO [AbstractYarnClient] - submitApplication, got applicationId=[application_1417028324995_0005]
2014-12-01 09:09:46,861 INFO [AbstractResourceLocalizer] - Setting stagingId=application_1417028324995_0005
2014-12-01 09:09:46,862 INFO [AbstractResourceLocalizer] - Marking distributed state false
2014-12-01 09:09:46,862 INFO [AbstractResourceLocalizer] - About to resolve localized files
[jmupfnd@awsupfxdqa1nodejs1 spring-xd-1.0.1.RELEASE-yarn]$ yarn application -list
14/12/01 09:09:52 INFO client.RMProxy: Connecting to ResourceManager at /10.94.70.3:8032
14/12/01 09:09:52 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Total number of applications (application-types: [] and states: [SUBMITTED, ACCEPTED, RUNNING]):0
Application-Id Application-Name Application-Type User Queue State Final-State Progress Tracking-URL
[jmupfnd@awsupfxdqa1nodejs1 spring-xd-1.0.1.RELEASE-yarn]$