Step 4: build and test the spark development environment through spark ide
Step 1: Import the package corresponding to spark-hadoop, select "file"> "project structure"> "Libraries", and select "+" to import the package corresponding to spark-hadoop:
Click "OK" to confirm:
Click "OK ":
After idea is completed, we will find that the spark jar package is imported into our project:
Ste
Label: style blog http OS use AR file SP 2014
7. perform the same hadoop 2.2.0 operations on sparkworker1 and sparkworker2 as sparkmaster. We recommend that you use the SCP command to copy the hadoop content installed and configured on sparkmaster to sparkworker1 and sparkworker2;
8. Start and verify the hadoop distributed Cluster
Step 1: format the HDFS File System:
Step 2: Start HDFS in sbin and execute the following command:
The startu
the latest version 13.1.4:
For the version selection, the official team provides the following options:
Here we select the "Community edition free" version in Linux, which can fully meet Scala development needs of any degree of complexity.
After the download is complete, save it to the following local location:
Step 2: Install idea and configure idea system environment variables
Create the "/usr/local/idea" directory:
Decompress the downloaded idea package to this directory:
Afte
13.1.4:
For the version selection, the official team provides the following options:
Here we select the "Community edition free" version in Linux, which can fully meet Scala development needs of any degree of complexity.
After the download is complete, save it to the following local location:
Step 2: Install idea and configure idea system environment variables
Create the "/usr/local/idea" directory:
Decompress the downloaded idea package to this directory:
After the installation is complete
/49/D5/wKioL1QbpNKDWXo_AAElnZLjV4U229.jpg "style =" float: none; "Title =" 14.png" alt = "wkiol1qbpnkdwxo_aaelnzljv4u229.jpg"/>
Select "yes" to enable automatic installation of scala plug-in idea.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/49/D3/wKiom1QbpLijqttNAAE3LTevJ5I077.jpg "style =" float: none; "Title =" 15.png" alt = "wkiom1qbplijqttnaae3ltevj5i077.jpg"/>
In this case, it takes about 2 minutes to download and install the SDK. Of course, the download time varies depen
Save and run the source command to make the configuration file take effect.
Step 3: Run idea and install and configure the idea Scala development plug-in:
The official document states:
Go to the idea bin directory:
Run "idea. Sh" and the following page appears:
Select "Configure" To Go To The idea configuration page:
Select plugins To Go To The plug-in installation page:
Click the "Install jetbrains plugin" option in the lower left corner to go to the following page:
Enter "Scala"
Modify the source code of our "firstscalaapp" to the following:
Right-click "firstscalaapp" and choose "Run Scala console". The following message is displayed:
This is because we have not set the JDK path for Java. Click "OK" to go to the following view:
In this case, select the "project" option on the left:
In this case, we select "new" of "No SDK" to select the following primary View:
Click the JDK option:
Select the JDK directory we installed earlier:
Click "OK"
Click OK:
Click the f
Step 5: test the spark IDE development environment
The following error message is displayed when we directly select sparkpi and run it:
The prompt shows that the master machine running spark cannot be found.
In this case, you need to configure the sparkpi execution environment:
Select Edit configurations to go to the configuration page:
In program arguments, enter "local ":
This configuration indicates that our program runs in local mode and is saved after configuration.
Run the pr
; "src =" http://s3.51cto.com/wyfs02/M02/4A/13/wKioL1QiJJPzxOm0AAFxk_FS8AU762.jpg "style =" float: none; "Title =" 51.png" alt = "wkiol1qijjpzxom0aafxk_fs8au762.jpg"/>
We found that we fully used the new background and correctly ran the program, which is much faster than the first operation.
This article is from the spark Asia Pacific Research Institute blog, please be sure to keep this source http://rockyspark.blog.51cto.com/2229525/1557591
[Spark Asia Pacific Research Institute Series] the pa
class name is changed. It seems that the upgrade resistance is high. You can only implement this extension by yourself.Ext JS 4 Date control Extension First paste the Code:Copy codeThe Code is as follows:/********************************** @ Author: oscar999* @ Description: New Widgets Extend from Ext* @ Verion: V1.0**********************************//*** Date Picker with Week*/Ext. define ('ext. ux. DatePickerWithWeek ',{Extend: "Ext. picker. Date "
table to store one-to-many/many-to-many relationships. Although I am not sure whether it can be done, I have not considered this in depth. If you think of a good design, please leave a message to discuss with me
Let's rethink the nature of the log module:
1. A large amount of data
2. Only a large amount of data (not associated with other modules, pure data)
This scenario reminds me of nosql. Here, we use MongoDB for implementation. For more informat
WEEK 1 computer practice project 2 -- monkey election dawang (Joseph's problem), Week 4 Joseph
Problem and code
/** Copyright (c) 2014, School of Computer Science, Yantai University * All rights reserved. * file name: test. cpp * Author: Xin Bin * Completion Date: July 15, January 30, 2015 * version number: v1.0 ** Problem description: Monkey election King (Jose
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.