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

add spark-connect java api #41

Closed
qianjiangchao1992 opened this issue Mar 2, 2022 · 9 comments
Closed

add spark-connect java api #41

qianjiangchao1992 opened this issue Mar 2, 2022 · 9 comments

Comments

@qianjiangchao1992
Copy link

现在工作大部分都用java来写的Spark ,希望能够提供java版本的api

@darionyaphet
Copy link
Contributor

ScalaJava是可以互操作的 所以Java 也可以使用 Scala 的API

@qianjiangchao1992
Copy link
Author

ScalaJava是可以互操作的 所以Java 也可以使用 Scala 的API

我在IDEA引用scala 这个类NebulaDataFrameWriter 好像不太行 其他的可以引用

@darionyaphet
Copy link
Contributor

darionyaphet commented Mar 2, 2022

NebulaDataFrameWriter是一个隐式类

@wey-gu
Copy link
Contributor

wey-gu commented Mar 3, 2022

@qianjiangchao1992
Copy link
Author

NebulaDataFrameWriter是一个隐式类
是这样的

@qianjiangchao1992
Copy link
Author

@qianjiangchao1992 不知道这会不会有帮助到你?

https://stackoverflow.com/questions/23261075/compiling-scala-before-alongside-java-with-gradle

我去试试 谢谢啊

@darionyaphet
Copy link
Contributor

@qianjiangchao1992 不知道这会不会有帮助到你?

https://stackoverflow.com/questions/23261075/compiling-scala-before-alongside-java-with-gradle

我们没用 Gradle

@wey-gu
Copy link
Contributor

wey-gu commented Mar 4, 2022

@Nicole00
Copy link
Contributor

ScalaJava是可以互操作的 所以Java 也可以使用 Scala 的API

我在IDEA引用scala 这个类NebulaDataFrameWriter 好像不太行 其他的可以引用

在java中这样调用scala的接口:

package$.MODULE$.NebulaDataFrameReader(spark.read()).nebula
package$.MODULE$.NebulaDataFrameWriter(df.write()).nebula

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

4 participants