oracle / big-data-lite

Samples to the Oracle Big Data Lite VM
http://www.oracle.com/technetwork/database/bigdata-appliance/oracle-bigdatalite-2104726.html
MIT License
38 stars 39 forks source link

Cannot load PGX property file into Apache Zeppelin #16

Open pankonst opened 7 years ago

pankonst commented 7 years ago

I recently installed Apache Zeppelin in my Big Data Lite VM version 4.8. I started my PGX server and Zeppelin services and I am able to access my notebook through http://localhost:8090. I used sudo when installing Zeppelin, otherwise the service would not start.

Every time I try to read a json property file, via PGX commands:

%pgx
g = session.readGraphWithProperties("/opt/oracle/oracle-spatial-graph/property_graph/data/electric-network/electric_graph.edge.json")

I get the following error: IllegalArgumentException: PGX does not support loading/storing from local filesystem in server/client mode

I copied the files into HDFS, modified the uri field accordingly and tried reading the property file from there:

%pgx
g = session.readGraphWithProperties("hdfs:/user/pgx/electric_graph.edge.json")

But then got the following error: _UnsupportedOperationException: no virtual file provider for scheme hdfs found; given URI: hdfs:/user/pgx/electricgraph.edge.json

The tutorial states that "any valid PGX shell script will run fine in the PGX interpeter".

When running the above commands in the PGX shell, they work as expected.

The PGX shell version is 2.4.0 while the Zeppelin interpreter version is 2.4.1.

Please advise