Giter VIP home page Giter VIP logo

spark-practice's People

Contributors

wshid avatar

Watchers

James Cloos avatar  avatar

spark-practice's Issues

spark-submit, 자원 로드 시 Exclamation mark 포함 문제

  • getClass().getResource(...)로 csv파일을 로드한다.
  • 이때, 로컬(mac)에서는 정상동작하나 서버(docker)에서 구동상의 문제가 발생한다.
  • 동일한 코드를 로컬에서 출력했을때,
    18/12/28 16:25:56 INFO GCTestMain$: rawFile Path : file:/foo/bar/workspace/spark-node1/spark_study/target/classes/BlackFriday.csv 	 ================
    18/12/28 16:25:56 INFO GCTestMain$: rawFileHeadless Path : file:/foo/bar/workspace/spark-node1/spark_study/target/classes/BlackFriday.headerless.csv 	 ================
    
    • 로컬에서는 정상적으로 resources로 설정한 자원을 로드하는 반면,
  • 서버(docker-container)에서 구동시,
    2018-12-28 07:26:36 INFO  GCTestMain$:31 - rawFile Path : jar:file:/root/workspace/spark_study/script/spark_study-1.0-SNAPSHOT.jar!/BlackFriday.csv      ================
    2018-12-28 07:26:36 INFO  GCTestMain$:32 - rawFileHeadless Path : jar:file:/root/workspace/spark_study/script/spark_study-1.0-SNAPSHOT.jar!/BlackFriday.headerless.csv   ================
    
    • 이와 같이 !가 포함되어 출력되는 것을 확인할 수 있다.
    • !가 포함됨으로써, 올바른 경로가 아니기 때문에 java.net.URISyntaxException이 발생한다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.