Lazy-linalg:spark third-party dependent packaging

Source: Internet
Author: User

  • Brief introduction
  • The SBT-based approach
  • Idea-based approach

Brief introduction

This mission is to pack the third package Lazy-linalg
The package, which contains the SBT script

The SBT-based approach

Download the source code after decompression, in the command line mode (CMD) to enter the source address
E:\Workdir\ScalaWorkdir\lazy-linalg-master
Then execute the command: SBT

This method is simple, but the compilation process requires networking to download a large number of dependent jar packages
has not been successful due to the impact of networking

Idea-based approach

According to the source of the package structure (), the code in my application directly add the package structure. And then compile the package

Idea Project directory structure schematic

PS Compile time note depends on the version, because Lazy-linalg depends on the release of Spark 1.5, and the first compilation setting depends on: Spark-assembly-1.3.0-hadoop2.4.0.jar. So the compilation does not pass
The compilation dependency is later set to: Spark-assembly-1.5.2-hadoop2.6.0.jar is compiled successfully.

PS: Since there is currently no 1.5 version of Spark, it has not been run after the test

Lazy-linalg:spark third-party dependent packaging

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.