0

I have an OrientDB database and I want to import it into scala within Zeppelin. I'm following the example provided here . However when I run the following command on Zeppelin's notebook

import com.orientechnologies.orient.core.id.ORecordId
import com.orientechnologies.orient.core.sql.query.OSQLSynchQuery

I got this error:

<console>:27: error: object orientechnologies is not a member of package com
     import com.orientechnologies.orient.core.id.ORecordId

but it looks orientechnologies is a member of com. Any suggestion?

MTT
  • 5,113
  • 7
  • 35
  • 61

2 Answers2

0

The problem is that zeppelin does not recognize some of the libraries and you need to add them separately. Here is the code I used to add jar file in Zeppelin:

%dep
z.load("/home/zeppelin/zeppelin-0.5.5-incubating-bin-all.orientdb-core-0.9.23.jar")

Make sure to restart Zeppelin before running the code. These lines need to be inserted before Spark initiation.

MTT
  • 5,113
  • 7
  • 35
  • 61
-2

I tried to reproduce your problem with class ORecordId in Scala and it works for me.

enter image description here

Hope it helps.

Alessandro Rota
  • 3,560
  • 1
  • 8
  • 10
  • Thanks for the answer! As I said I'm using Scala in Zeppelin. Something is wrong in Zeppelin. If we do not use Zeppelin, it works for me as well. – MTT Apr 19 '16 at 17:41