1

我有一个有 2 个节点的 YARN 集群。我已经验证 YARN 集群运行良好。我正在尝试部署 XD。

我按照最新的 XD 指南中的步骤配置 Zk、Postgres、Redis 并相应地修改了 servers.yml。执行启动命令后没有错误消息。但是在执行 start admin 和 start container 之后,我没有看到任何应用程序在 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-push 会负责实际安装吗?

应该applicationDir在所有 YARN 节点上创建还是仅在资源管理器上创建?

如果 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]$ 
4

0 回答 0