0

我按照这里的说明http://docs.spring.io/spring-cloud-dataflow/docs/1.0.0.M1/reference/html/getting-started-deploying-spring-cloud-dataflow.html(这似乎下来目前),但我在尝试推送管理应用程序时安装失败。

2016-04-05T16:39:48.55-0500 [APP/0]      ERR java.lang.reflect.InvocationTargetException
2016-04-05T16:39:48.55-0500 [APP/0]      ERR    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2016-04-05T16:39:48.55-0500 [APP/0]      ERR    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2016-04-05T16:39:48.55-0500 [APP/0]      ERR    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2016-04-05T16:39:48.55-0500 [APP/0]      ERR    at java.lang.reflect.Method.invoke(Method.java:498)
2016-04-05T16:39:48.55-0500 [APP/0]      ERR    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:53)
2016-04-05T16:39:48.55-0500 [APP/0]      ERR    at java.lang.Thread.run(Thread.java:745)
2016-04-05T16:39:48.55-0500 [APP/0]      ERR Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'streamController' defined in file [/home/vcap/app/org/springframework/cloud/dataflow/admin/controller/StreamController.class]: Unsatisfied dependency expressed through constructor argument with index 2 of type [org.springframework.cloud.dataflow.module.deployer.ModuleDeployer]: : No qualifying bean of type [org.springframework.cloud.dataflow.module.deployer.ModuleDeployer] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value=processModuleDeployer)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.cloud.dataflow.module.deployer.ModuleDeployer] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Qualifier(value=processModuleDeployer)}
4

2 回答 2

0

附加日志中没有太多详细信息。您能否将整个堆栈跟踪作为要点或其他方式附加?

另外,你是:

  • 推动 M1 版本或 SNAPSHOT 版本dataflow-server
  • dataflow-server在 PCF 或 PWS 上运行?

通常的嫌疑人围绕dataflow-server在 Cloud Foundry 上运行所需的 env-var;也许您可以仔细检查以下属性值的正确性。

cf set-env <DATAFLOW_SERVER_APP_NAME> CLOUDFOUNDRY_API_ENDPOINT <API_ENDPOINT>
cf set-env <DATAFLOW_SERVER_APP_NAME> CLOUDFOUNDRY_ORGANIZATION <ORG>
cf set-env <DATAFLOW_SERVER_APP_NAME> CLOUDFOUNDRY_SPACE <SPACE>
cf set-env <DATAFLOW_SERVER_APP_NAME> CLOUDFOUNDRY_DOMAIN <DOMAIN>
cf set-env <DATAFLOW_SERVER_APP_NAME> CLOUDFOUNDRY_SERVICES <REDIS_INSTANCE_NAME>
cf set-env <DATAFLOW_SERVER_APP_NAME> CLOUDFOUNDRY_USERNAME <USER>
cf set-env <DATAFLOW_SERVER_APP_NAME> CLOUDFOUNDRY_PASSWORD <PASSWORD>
cf set-env <DATAFLOW_SERVER_APP_NAME> CLOUDFOUNDRY_SKIP_SSL_VALIDATION true

线程中的讨论也可能很有用。

至于文档,我们目前正在迁移到新的数据中心 - 请参阅/关注此处了解更多详细信息。这将很快恢复。

于 2016-04-06T00:44:17.737 回答
0

我在 Micro-PCF 和 PWS 上做过,它对我有用。我按照下面链接中的说明进行操作。 http://docs.spring.io/spring-cloud-dataflow-admin-cloudfoundry/docs/current-SNAPSHOT/reference/htmlsingle/#overview

于 2016-04-20T13:46:26.043 回答