Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.spark.streaming.examples;
package org.apache.spark.examples.streaming;

import com.google.common.collect.Lists;

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you change the package name in the instructions of both these files? See https://github.com/apache/spark/pull/674/files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done 👍

Expand Down Expand Up @@ -48,7 +48,7 @@
* To run this on your local machine, you need to first run a Netcat server
* `$ nc -lk 9999`
* and then run the example
* `$ ./run org.apache.spark.streaming.examples.JavaCustomReceiver local[2] localhost 9999`
* `$ ./run org.apache.spark.examples.streaming.JavaCustomReceiver local[2] localhost 9999`
*/

public class JavaCustomReceiver extends Receiver<String> {
Expand Down Expand Up @@ -149,5 +149,3 @@ private void receive() {
}
}
}


Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* limitations under the License.
*/

package org.apache.spark.streaming.examples
package org.apache.spark.examples.streaming

import java.io.{InputStreamReader, BufferedReader, InputStream}
import java.net.Socket
Expand All @@ -37,7 +37,7 @@ import org.apache.spark.streaming.receiver.Receiver
* To run this on your local machine, you need to first run a Netcat server
* `$ nc -lk 9999`
* and then run the example
* `$ ./run org.apache.spark.streaming.examples.CustomReceiver local[2] localhost 9999`
* `$ ./run org.apache.spark.examples.streaming.CustomReceiver local[2] localhost 9999`
*/
object CustomReceiver {
def main(args: Array[String]) {
Expand Down