Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 25157200BDB for ; Mon, 12 Dec 2016 20:23:02 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 23AEC160B22; Mon, 12 Dec 2016 19:23:02 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 483F6160B1A for ; Mon, 12 Dec 2016 20:23:01 +0100 (CET) Received: (qmail 86924 invoked by uid 500); 12 Dec 2016 19:22:58 -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 86736 invoked by uid 99); 12 Dec 2016 19:22:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Dec 2016 19:22:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id E2DCB1AA2EC for ; Mon, 12 Dec 2016 19:22:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DZWzqO7Q5DOl for ; Mon, 12 Dec 2016 19:22:55 +0000 (UTC) Received: from mail-qk0-f177.google.com (mail-qk0-f177.google.com [209.85.220.177]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 679535F56F for ; Mon, 12 Dec 2016 19:22:55 +0000 (UTC) Received: by mail-qk0-f177.google.com with SMTP id n21so93638586qka.3 for ; Mon, 12 Dec 2016 11:22:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Jfbbz78XhRE1M+LHsmFB28JviyynpSYOx5aA6fkFfBQ=; b=LC7ZgoOvokU4gTi64U8pjyaWbgGVyoVe1Dc+2LIaLlvRvABarpc3G6qrgccryM6HAU Jwy53bnDgWZd1hLc1STiZ9Cm73mvXkxTQoJAcfl5iR8ZCPGGTEh75GcOQjEzZbHMXSkF 423l8fsXSp2NCyzKgijS3m+OUF14ZeMhfmPCzl1QpnMflR7v0oXIlrzCaA8LrekAmb3y qnUC6Q1ceaYsNmRrDR/ul7fd844TF6+fWbyxpeCPubn91pBMCq5OePpE62KU+P38OGdN +kJ8Vf+8U62VligwbdjMV9db21HaI+jtDYJPLGHolX2WORtWlZfOrnTdu+xQsvv8GbCM oKvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Jfbbz78XhRE1M+LHsmFB28JviyynpSYOx5aA6fkFfBQ=; b=P9BCAkBd5RqJzmGviVnJKX5Y8ItbeqIrJXhOBlWQw64pdNoiudqSr4BcT0V70iRSsw Zs9sfyTnmqswAOggGlooTcuZailI6t3DEetx7ee8DwPWtEbYHJj806ZovxlqCCkHYg+/ yE9xf8C42EwnnWm7WR2EyIPaG8jgXNy6cpmb6yX03PMTQjHtD7vcpwzcapGgHD8QPqt5 ue5ILsUdVVZYWtEnFwmdip/4cJ2zuLekEnQ2Q5sfLqTLaZuw5g4RglV+QS2gkuc3zCAw M7ipb9aJ7w7S8sZfoasNpcuGboyHLjMwcwN13MjyJfdN4R2qQWeNWoXaJb41jYZHCvqc ZN+A== X-Gm-Message-State: AKaTC02F8Ltj8tdUoUr5eWsfl6/hcJXL0vkKC0T3loKtPfZ462npNHGb9Qj0J6Mdi1tAaOaFAVYhVMLYvHID8A== X-Received: by 10.233.239.65 with SMTP id d62mr11363268qkg.122.1481570574523; Mon, 12 Dec 2016 11:22:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.172.7 with HTTP; Mon, 12 Dec 2016 11:22:54 -0800 (PST) In-Reply-To: References: From: Neil Jonkers Date: Mon, 12 Dec 2016 21:22:54 +0200 Message-ID: Subject: Re: [Spark Core] - Spark dynamoDB integration To: Marco Mistroni Cc: Pratyaksh Sharma , User Content-Type: multipart/alternative; boundary=94eb2c033d78cdea0d05437b070d archived-at: Mon, 12 Dec 2016 19:23:02 -0000 --94eb2c033d78cdea0d05437b070d Content-Type: text/plain; charset=UTF-8 Hello, Good examples on how to interface with DynamoDB from Spark here: https://aws.amazon.com/blogs/big-data/using-spark-sql-for-etl/ https://aws.amazon.com/blogs/big-data/analyze-your-data-on-amazon-dynamodb-with-apache-spark/ Thanks On Mon, Dec 12, 2016 at 7:56 PM, Marco Mistroni wrote: > Hi > If it can help > 1.Check Java docs of when that method was introduced > 2. U building a fat jar? Check which libraries have been included....some > other dependencies might have forced an old copy to be included.... > 3. If u. Take code outside spark.....does it work successfully? > 4. Send short sample.... > Hth > > On 12 Dec 2016 11:03 am, "Pratyaksh Sharma" ac.in> wrote: > > Hey I am using Apache Spark for one streaming application. I am trying to > store the processed data into dynamodb using java sdk. Getting the > following exception - > 16/12/08 23:23:43 WARN TaskSetManager: Lost task 0.0 in stage 1.0: > java.lang.NoSuchMethodError: com.amazonaws.SDKGlobalConfigu > ration.isInRegionOptimizedModeEnabled()Z > at com.amazonaws.ClientConfigurationFactory.getConfig(ClientCon > figurationFactory.java:35) > at com.amazonaws.services.dynamodbv2.AmazonDynamoDBClient. >(AmazonDynamoDBClient.java:374) > > Spark version - 1.6.1 > Scala version - 2.10.5 > aws sdk version - 1.11.33 > > Has anyone faced this issues? Any help will be highly appreciated. > > -- > Regards > > Pratyaksh Sharma > 12105EN013 > Department of Electronics Engineering > IIT Varanasi > Contact No +91-8127030223 <+91%2081270%2030223> > > > --94eb2c033d78cdea0d05437b070d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Mon, Dec 12, 2016 at 7:56 PM, Marco Mistroni <mmistroni@gmail.com> wrote:
Hi<= div dir=3D"auto">=C2=A0If it can help
1.Check Java d= ocs of when that method was introduced=C2=A0
2. U bu= ilding a fat jar? Check which libraries have been included....some other de= pendencies might have forced an old copy to be included....
3. If u. Take code outside spark.....does it work successfully?
4. Send short sample....
Hth

On 12 Dec 2016 11:03 am, "Pratyaksh S= harma" <pratyaksh.sharma.ece12@itbhu.ac.in> wrote:
Hey I am using Apache Spark for one stre= aming application. I am trying to store the processed data into dynamodb us= ing java sdk. Getting the following exception -=C2=A0
16/12/08 23:23:43 WARN TaskSetManager: Lost task 0.0 in stage= 1.0:=C2=A0
java.lang.NoSuchMethodError:= com.amazonaws.SDKGlobalConfiguration.isInRegionOptimizedModeEnab= led()Z
at com.amazonaw= s.ClientConfigurationFactory.getConfig(ClientConfigurationFactory= .java:35)
at com.amazo= naws.services.dynamodbv2.AmazonDynamoDBClient.<init>(Amazon= DynamoDBClient.java:374)

=
Spark version - 1.6.1
Scala version - 2.10.5
aws s= dk version - 1.11.33
=C2=A0
Has anyone faced this issues? Any help will be highl= y appreciated.

--
Regards

Pratyaksh Sharma
12105EN013
Department of Electronics Engineering
IIT Varanasi
=
Contact No +91-8127030223


--94eb2c033d78cdea0d05437b070d--