Return-Path: X-Original-To: apmail-mahout-user-archive@www.apache.org Delivered-To: apmail-mahout-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0B6071873D for ; Tue, 2 Feb 2016 16:26:14 +0000 (UTC) Received: (qmail 9300 invoked by uid 500); 2 Feb 2016 16:26:09 -0000 Delivered-To: apmail-mahout-user-archive@mahout.apache.org Received: (qmail 9240 invoked by uid 500); 2 Feb 2016 16:26:09 -0000 Mailing-List: contact user-help@mahout.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@mahout.apache.org Delivered-To: mailing list user@mahout.apache.org Received: (qmail 9228 invoked by uid 99); 2 Feb 2016 16:26:09 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Feb 2016 16:26:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 11109C1806 for ; Tue, 2 Feb 2016 16:26:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.698 X-Spam-Level: * X-Spam-Status: No, score=1.698 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2.5, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id qhLj01fggR1k for ; Tue, 2 Feb 2016 16:26:07 +0000 (UTC) Received: from mail-qg0-f49.google.com (mail-qg0-f49.google.com [209.85.192.49]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id E30522304B for ; Tue, 2 Feb 2016 16:26:06 +0000 (UTC) Received: by mail-qg0-f49.google.com with SMTP id b35so151909257qge.0 for ; Tue, 02 Feb 2016 08:26:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=wrFeURADBUuLS8b3j8WTrTTyeHI1/P4070oCMGWRlXc=; b=xMFezUs4i74qwAWEMtwUn6T4IbNoXOvfFSSeYjx0hWm1E+Aac4RfrJPirH0V2+Jlzz 3gsfDTn3PWnH+Gm+K/58YqNz2Z2EsVISOleB/+/FQdJaxiCj7pV5MfDSiZ1hm3RXmgkJ c+QQRn/c0jSNF9kae/Q6JUWpmFKLUQvYdNMLCW6gPAJYUdnHQA7SX8K34MW8TKtlMVnk 1M4WNpZCYiT2NNJ25e2Lg2bS+ly7O99jMsLupbX23I+ku9TIdgwZ78mh+G5It/xlKa59 o7YoOQv86GaT1L9QeU9DsXLay3LM2Psh0+m0XDaWN4sR4OZgK3mccbIIc398U/ddfqf0 NWUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=wrFeURADBUuLS8b3j8WTrTTyeHI1/P4070oCMGWRlXc=; b=kwh+WbHq7GHyTTqm7CAsYcNodWVCUnQCHQ58gUv+6R4QLpum0imcyGSx4eZbxdfzTw juSf0WjqwCQOyofZbvccN+Q9tSf+8PND1XFVhc80yHhei+EX+dSrL6m4532rgx7D0xL8 QmmmoZIvQEaLGHMMPA5ebC+bvEsrMu+QFpX4zfyeYcxeOeiZN+kiljjv5XTA4+tR4/se tbSKG7gNZdDsKSpurE/tsmVBTD6gMmeVLLI5ri9soICahJd0BQgAUH7mm+gCS29QXDEO LWnEuqRVumin+gvWNFt/sXgZ3NsvtNPlIJMQgFhvQZ9yl1gvPDxvV6nrqJkbIplzWNB0 djvw== X-Gm-Message-State: AG10YOR9uTBjPBtGQPOoL0JFiSuRS1vscioapUwcbtqCWCllK4LcziyQrTXQ4aelAZNczVwLBH+APQ9eUi0+Jg== MIME-Version: 1.0 X-Received: by 10.140.218.135 with SMTP id o129mr14884435qhb.1.1454430360241; Tue, 02 Feb 2016 08:26:00 -0800 (PST) Received: by 10.55.66.78 with HTTP; Tue, 2 Feb 2016 08:25:59 -0800 (PST) Received: by 10.55.66.78 with HTTP; Tue, 2 Feb 2016 08:25:59 -0800 (PST) Date: Wed, 3 Feb 2016 00:25:59 +0800 Message-ID: Subject: Mahout out put to plot graph From: Suet Lam Felix CHUNG To: user@mahout.apache.org Content-Type: multipart/alternative; boundary=001a11399d32f908a1052acbf491 --001a11399d32f908a1052acbf491 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I use Mahout to run various algorithms,e.g. kmeans, and then I would like to use the result to plot graph. Im using R as my graph plotting tool. I use the seqsdumper and export format as graph_ml. However, the output file (graph ml ) contains difference result from csv output.r also cannot plot the result. My question Anyway to plot the Mahout result by r 2016/2/3 =E4=B8=8A=E5=8D=8812:22=E6=96=BC "BahaaEddin AlAila" =E5=AF=AB=E9=81=93=EF=BC=9A > Greetings mahout users, > > I have been trying to use mahout samsara as a library with scala/spark, b= ut > I haven't been successful in doing so. > > I am running spark 1.6.0 binaries, didn't build it myself. > However, I tried both readily available binaries on Apache mirrors, and > cloning and compiling mahout's repo, but neither worked. > > I keep getting > > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/mahout/sparkbindings/SparkDistributedContext > > The way I am doing things is: > I have spark in ~/spark-1.6 > and mahout in ~/mahout > I have set both $SPARK_HOME and $MAHOUT_HOME accordingly, along with > $MAHOUT_LOCAL=3Dtrue > > and I have: > > ~/app1/build.sbt > ~/app1/src/main/scala/App1.scala > > in build.sbt I have these lines to declare mahout dependecies: > > libraryDependencies +=3D "org.apache.mahout" %% "mahout-math-scala" % > "0.11.1" > > libraryDependencies +=3D "org.apache.mahout" % "mahout-math" % "0.11.1" > > libraryDependencies +=3D "org.apache.mahout" % "mahout-spark_2.10" % "0.1= 1.1" > > along with other spark dependencies > > and in App1.scala, in the main function, I construct a context object usi= ng > mahoutSparkContext, and of course, the sparkbindings are imported > > everything compiles successfully > > however, when I submit to spark, I get the above mentioned error. > > I have a general idea of why this is happening: because the compiled app1 > jar depends on mahout-spark dependency jar but it cannot find it in the > class path upon being submitted to spark. > > In the instructions I couldn't find how to explicitly add the mahout-spar= k > dependency jar to the class path. > > The question is: Am I doing the configurations correctly or not? > > Sorry for the lengthy email > > Kind Regards, > Bahaa > --001a11399d32f908a1052acbf491--