Hello everyone
I recently installed Apache Zeppelin on my Big Data Lite VM version 4.8 following the instructions provided in the StarHere.html page, located on the Virtual Machine Desktop. I issued the following command in the terminal:
$ sudo /home/oracle/src/thirdparty/zeppelin.sh install
I used 'sudo' because otherwise the Zeppelin service would not start neither from the Start/Stop list nor manually from the terminal. When asked if I wanted to add Zeppelin to the Start/Stop services list I selected 'yes'. I started my Zeppelin service, navigated to 'http://localhost:8090' and was able to access Zeppelin notebooks . Everything seemed fine.
The problem is that when trying to run the below lines of code in a test notebook I created:
%pgx
g = session.readGraphWithProperties("/opt/oracle/oracle-spatial-graph/property_graph/data/electric-network/electric_graph.edge.json")
I got the following error:
IllegalArgumentException: PGX does not support loading/storing from local filesystem in server/client mode — click for stack trace
java.util.concurrent.ExecutionException java.lang.IllegalArgumentException: PGX does not support loading/storing from local filesystem in server/client mode
java.util.concurrent.CompletableFuture.reportGet (CompletableFuture.java : 357)
java.util.concurrent.CompletableFuture.get (CompletableFuture.java : 1895)
oracle.pgx.api.PgxFuture.get (PgxFuture.java : 86)
...
I thought that maybe if I copied the files into HDFS I would be able to read the graph property file mentioned above. So I create a folder in HDFS and copied the files there:
$ hadoop fs -mkdir /user/pgx/
$ hadoop fs -copyFromLocal /opt/oracle/oracle-spatial-graph/property_graph/data/electric-network/electric_graph.edge /user/pgx/
$ hadoop fs -copyFromLocal /opt/oracle/oracle-spatial-graph/property_graph/data/electric-network/electric_graph.edge.json /user/pgx/
I then changed the "uri" field of the electric_graph.edge.json file to "hdfs:/user/pgx/electric_graph.edge".
However, when I tried:
%pgx
g = session.readGraphWithProperties("hdfs:/user/pgx/electric_graph.edge.json")
I got yet another error:
UnsupportedOperationException: no virtual file provider for scheme hdfs found; given URI: hdfs:/user/pgx/electric_graph.edge.json — click for stack trace
java.util.concurrent.ExecutionException java.lang.UnsupportedOperationException: no virtual file provider for scheme hdfs found; given URI: hdfs:/user/pgx/electric_graph.edge.json
java.util.concurrent.CompletableFuture.reportGet (CompletableFuture.java : 357)
java.util.concurrent.CompletableFuture.get (CompletableFuture.java : 1895)
oracle.pgx.api.PgxFuture.get (PgxFuture.java : 86)
...
I also tried moving the files so I copied them into '/user/oracle/' in HDFS and tried reading the property file from there, but in vain. I was presented again with the error above.
The tutorial states that 'The PGX Zeppelin intepreter evaluates paragraphs just like the PGX shell and returns the output. So any valid PGX shell script will run fine in the PGX interpeter'. I must mention that the above two commands run fine in the PGX shell and render the appropriate results.
Am I doing something wrong here or am I missing something really important?
Thanks in advance,
Panagiotis