title: Spark/Hadoop can't read root files
body: <p>I'm trying to read a file inside a folder that only me (and root) can read/write, through spark, first I start the shell with:</p>
  
  <pre><code>spark-shell --master yarn-client
  </code></pre>
  
  <p>then I:</p>
  
  <pre><code>val base = sc.textFile("file///mount/bases/FOLDER_LOCKED/folder/folder/file.txt")
  base.take(1)
  </code></pre>
  
  <p>And got the following error:</p>
  
  <pre><code>2018-02-19 13:40:20,835 WARN scheduler.TaskSetManager:
  Lost task 0.0 in stage 0.0 (TID 0, mydomain, executor 1): 
  java.io.FileNotFoundException: File file: /mount/bases/FOLDER_LOCKED/folder/folder/file.txt does not exist
  at org.apache.hadoop.fs.RawLocalFileSystem.deprecatedGetFileStatus(RawLocalFileSystem.java:611)
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileLinkStatusInternal(RawLocalFileSystem.java:824)
      at org.apache.hadoop.fs.RawLocalFileSystem.getFileStatus(RawLocalFileSystem.java:601)
  ...
  </code></pre>
  
  <p>I am suspecting that as yarn/hadoop was launched with the user hadoop it can't go further in this folder to get the file. How could I solve this?</p>
  
  <p>OBS: This folder can't be open to other users because it has private data.</p>
  
  <p>EDIT1: This /mount/bases is a network storage, using a cifs connection.</p>
  
  <p>EDIT2: hdfs and yarn was launched with the user <code>hadoop</code></p>