컴파일....


$ mkdir -p ~/scalaproject/wordcount/target
$ cd ~/scalaproject/wordcount
$ scalac -d target/ src/lab/core/wordcount/WordCountScala.scala

jar 아카이브....

$ cd ~/scalaproject/wordcount/target
$ jar cvf ../wordcount.jar ./lab/core/wordcount/*

실행....(by scala) + 저장된 파일(README.wordcount_scala) 내용 확인....

$ scala -classpath "~/scalaproject/wordcount/wordcount.jar" lab.core.wordcount.WordCountScala
$ cat /usr/local/spark/README.wordcount_scala | more
profile
50대 개발자 노드, 자바스크립트

0개의 댓글

Powered by GraphCDN, the GraphQL CDN