Created
December 15, 2017 01:01
-
-
Save nano-yang/7653edbf19e74cab6a3a05dad0b58157 to your computer and use it in GitHub Desktop.
spark dependency with Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#### config packages #### | |
PACKAGES := \ | |
net.liftweb:lift-json:2.0 \ | |
datastax:spark-cassandra-connector:1.6.10-s_2.11 \ | |
#### main part #### | |
null := | |
space := $(null) # | |
comma := , | |
pkgs = $(subst $(space),$(comma),$(PACKAGES)) | |
.PHONY: spark-shell | |
spark-shell: | |
spark-shell --packages '$(pkgs)' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment