Intellij IDEA project run first to create a spark WordCount detailed map tutorial

1. official website to download and install Scala and Spark configuration windows environment variables:

scala Download:

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

spark Downloads:

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

2. Create a scala project:

Here Insert Picture Description
Here Insert Picture Description

Here I've downloaded yet downloaded directly point to Install wait for the download to complete re-install the operating

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Introducing spark jar package

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Here Insert Picture Description

Running the first WordCount program:

Here Insert Picture Description

Released five original articles · won praise 12 · views 5542

Guess you like

Origin blog.csdn.net/weixin_44912902/article/details/104711299