Groups
Groups
Sign in
Groups
Groups
SparkR Developers
Conversations
About
Send feedback
Help
SparkR OCR file read
47 views
Skip to first unread message
armen donigian
unread,
Nov 7, 2015, 9:13:38 PM
11/7/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SparkR Developers
How would you load an OCR formatted file in SparkR?
For example, here's the scala equivalent:
scala> val blah = sqlContext.read.format("orc").load(filename)
Sebastian YEPES
unread,
Dec 7, 2015, 7:06:13 AM
12/7/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to SparkR Developers
You need to create a Hive context to read ORC files:
hiveContext <- sparkRHive.init(sc)
d <- read.df(hiveContext, "/user/spark/data.orc", "orc")
printSchema(d)
Reply all
Reply to author
Forward
0 new messages