Spark Development History (Windows environment)

Source: Internet
Author: User

1. Build a development environment according to the Spark Source code compilation guide.

II. The source code downloaded directly from SVN may not be compiled in eclipse. The reason is that spark source has support for Apple and other plug-ins and requires support from other jar packages, you can delete the relevant documents that report errors under plugins. According to the error message of Eclipse. Generally apple, growl, and reversi.

Iii. Installation Tools

2.6.x

Izpack-install-4.3.1.jarw.launch4j-3.0.0-win32.exe, python-3.1.1.msi is best installed in the root directory, directory do not have spaces.

(1) The installation method of IzPack-install-4.3.1.jar is:

Java-jar IzPack-install-4.3.1.jar

(2) after installing the python-3.1.1.msi to set Python Environment Variables

Setting Process:
Choose Control Panel> system> advanced> environment variable. Select the PATH variable in the "System variables" form, edit the variable, and add c: \ python31 to the end of the value string.
Note: In the PATH variable value string, each item is separated by a semicolon. Therefore, make sure that there is a semicolon ";" before c: \ python31 and the previous string value are separated. After this setting, you can use python in the Windows command line mode.
In the command line mode, use the command

C: \> Python-V

If the result is returned

Python 3.1.1

It indicates that your system has installed Python 3.1.1.
If the result is

'Python' is not recognized as an internal or external command, operable program or batch file.

It indicates that your system has not installed python.

4. Configure build. XML in the spark/build directory.

2.6.x

Set two places, such

<! -- Izpack installer -->

<Property name = "Installer. izpack. dir" value = "D: \ izpack"/>

<Property name = "launch4j. dir" location = "D: \ launch4j"/>

5. Generate spark

(1) generate an executable file

1) Click window: Show view: ant

2) Right-click the ant panel and select Add buildfiles.

3) Expand spark: Build folder, select build. XML, and click "OK"

4) on the ant panel, expand spark and double-click "release". After a while, the system prompts "build successful ".

5) in this way, two batch files will be generated in Spark \ build \ bin, and the job can be run.

(2) generate an EXE file

2.6.x

1) on the ant panel, expand spark and double-click "Installer. izpack.". After a period of time, a message indicating termination is displayed.

Run in DOS: for example:

C: \ izpack \ utils \ wrappers \ izpack2exe> Python izpack2exe. py -- file = E: \ spark \ install

Er \ spark-installer.jar -- output = E: \ spark \ Installer \ spark-installer.exe

Use -- to separate spaces in the middle

2) in this way, spark \ buildgenerates two exefiles spark.exeand starter.exe to run.

Spark.exe generated in Step 6 cannot run on a computer without JRE installed. Copy the JRE folder of JDK 1.6.0 to the same directory. Now you can use the tool (innosetup.exe) to pack the target \ build folder.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.