spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From VJ <>
Subject DataFrame with bean class
Date Wed, 07 Oct 2015 16:02:09 GMT
I have a bean class defined as follows:

class result {
private String name;

public result() { };

public String getname () {return name;}
public void setname (String s) {name = s;)

I then define 
DataFrame x = SqlContext.createDataFrame(myrdd, result.class);

When I run this job, I am getting the exception: illegalAccessException,
class sqlContex....apply cannot access a member or result with modifier

I have defined the bean class in the same package as where I am accessing
from. But this is in a different file. 
Any thoughts? I guess, it is an issue with java reflection?? any approach to
solve this?


View this message in context:
Sent from the Apache Spark User List mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message