Return-Path: X-Original-To: apmail-spark-user-archive@minotaur.apache.org Delivered-To: apmail-spark-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 555A61814F for ; Wed, 7 Oct 2015 16:02:23 +0000 (UTC) Received: (qmail 66309 invoked by uid 500); 7 Oct 2015 16:02:19 -0000 Delivered-To: apmail-spark-user-archive@spark.apache.org Received: (qmail 66214 invoked by uid 500); 7 Oct 2015 16:02:19 -0000 Mailing-List: contact user-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@spark.apache.org Received: (qmail 66204 invoked by uid 99); 7 Oct 2015 16:02:19 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Oct 2015 16:02:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 1C2BB180E21 for ; Wed, 7 Oct 2015 16:02:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.314 X-Spam-Level: ** X-Spam-Status: No, score=2.314 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id vSsEgSj7fMYd for ; Wed, 7 Oct 2015 16:02:10 +0000 (UTC) Received: from mwork.nabble.com (mwork.nabble.com [162.253.133.43]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTP id 8155823032 for ; Wed, 7 Oct 2015 16:02:10 +0000 (UTC) Received: from mben.nabble.com (unknown [162.253.133.72]) by mwork.nabble.com (Postfix) with ESMTP id C3BA72A97C75 for ; Wed, 7 Oct 2015 09:02:55 -0700 (PDT) Date: Wed, 7 Oct 2015 09:02:09 -0700 (MST) From: VJ To: user@spark.apache.org Message-ID: <1444233729983-24970.post@n3.nabble.com> Subject: DataFrame with bean class MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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); x.show() When I run this job, I am getting the exception: illegalAccessException, class sqlContex....apply cannot access a member or result with modifier public. 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? VJ -- View this message in context: http://apache-spark-user-list.1001560.n3.nabble.com/DataFrame-with-bean-class-tp24970.html Sent from the Apache Spark User List mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@spark.apache.org For additional commands, e-mail: user-help@spark.apache.org