Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

有springboot 集成 storm 的例子吗.谢谢 #1

Closed
wurangbo opened this issue Oct 17, 2018 · 6 comments
Closed

有springboot 集成 storm 的例子吗.谢谢 #1

wurangbo opened this issue Oct 17, 2018 · 6 comments

Comments

@wurangbo
Copy link

No description provided.

@itning
Copy link
Owner

itning commented Oct 17, 2018

目前没有 0.0

@wurangbo
Copy link
Author

Caused by: java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.

我用springboot 打包,提交到集群,运行出现了以上的错误

@itning
Copy link
Owner

itning commented Oct 18, 2018

Caused by: java.lang.IllegalArgumentException: No auto configuration classes found in META-INF/spring.factories. If you are using a custom packaging, make sure that file is correct.

我用springboot 打包,提交到集群,运行出现了以上的错误

打包需要将依赖也打进去

@wurangbo
Copy link
Author

已经打进去了

@itning
Copy link
Owner

itning commented Oct 18, 2018

已经打进去了

<build>
    <plugins>
       <plugin>
          <groupId>org.springframework.boot</groupId>
          	<artifactId>spring-boot-maven-plugin</artifactId>
            	<executions>
                	<execution>
                        <goals>
                            <goal>repackage</goal>
                        </goals>
                    </execution>
                </executions>
        </plugin>
    </plugins>
</build>

@wurangbo
Copy link
Author

这种打出来的,本地 java -jar ****.jar没有问题
放到集群模式下执行 storm jar /package/hub-0.0.1-SNAPSHOT.jar com.phoenix.hub.HubApplication phoenixTopology 会出现以下错误
Error: Could not find or load main class

@itning itning closed this as completed Dec 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants