简体   繁体   English

如何在Eclipse中添加Spark Java API(Javadoc)

[英]How to add Spark Java API (Javadoc) in eclipse

I want to add Spark Java API (Javadoc) in my eclipse so that when I hover mouse on the classes/methods/objects from Spark API , I get to see the documentation about the class or method. 我想在日食中添加Spark Java API(Javadoc),以便当我将鼠标悬停在Spark API的类/方法/对象上时,可以查看有关类或方法的文档。 I want to know from where I will be able to get it. 我想知道从哪里可以得到它。 I searched a lot and this is the closest I have been to. 我搜寻了很多东西,这是我最近去过的地方。 I want to access this documentation from my eclipse. 我想从日食中访问此文档

Try this: 尝试这个:

  1. download spark-core: http://central.maven.org/maven2/org/apache/spark/spark-core_2.10/1.0.0/spark-core_2.10-1.0.0.jar 下载spark-core: http : //central.maven.org/maven2/org/apache/spark/spark-core_2.10/1.0.0/spark-core_2.10-1.0.0.jar
  2. Right click your project -> Build -> Configure build path 右键单击您的项目->构建->配置构建路径
  3. Add the downloaded .jar via "Add External JARs" and press OK. 通过“添加外部JAR”添加下载的.jar,然后按OK。
  4. Then, expand the spark-core.jar item (black arrow left from spark-core) 然后,展开spark-core.jar项(spark-core左侧的黑色箭头)
  5. Edit the Javadoc location to http://spark.apache.org/docs/latest/api/java 将Javadoc位置修改为http://spark.apache.org/docs/latest/api/java
  6. Apply -> Ok. 应用->确定。

Just follow these simple steps : 只需遵循以下简单步骤:

  1. Download this jar file org.apache.spark.api 下载此jar文件org.apache.spark.api
  2. Right click on eclipse's project -> Build -> Configure build path 右键单击eclipse的项目->构建->配置构建路径
  3. Select Java build path -> choose Libraries -> Add External jar 选择Java构建路径->选择库->添加外部jar
  4. Select org.apache.spark.api And then OK 选择org.apache.spark.api ,然后单击确定。

Now check,Spark api is add in your project. 现在检查,Spark api已添加到您的项目中。

I think it will work. 我认为它将起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM