我按照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)}
答案 0 :(得分:0)
附加日志中的细节不多。您是否可以将整个堆栈跟踪作为要点或其他方式附加?
另外,你是:
dataflow-server
dataflow-server
? 通常的嫌疑人围绕着在Cloud Foundry上运行的dataflow-server
所需的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
this主题中的讨论也很有用。
至于文档,我们目前正在迁移到新的数据中心 - 请参阅/关注here了解更多详情。这将很快恢复。
答案 1 :(得分:0)
我在Micro-PCF和PWS上做过,它对我有用。 我按照以下链接给出的说明。 http://docs.spring.io/spring-cloud-dataflow-admin-cloudfoundry/docs/current-SNAPSHOT/reference/htmlsingle/#overview