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 4E77A200CC2 for ; Wed, 5 Jul 2017 23:23:36 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4BF84164856; Wed, 5 Jul 2017 21:23:36 +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 6B527164855 for ; Wed, 5 Jul 2017 23:23:35 +0200 (CEST) Received: (qmail 39826 invoked by uid 500); 5 Jul 2017 21:23:34 -0000 Mailing-List: contact dev-help@systemml.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@systemml.apache.org Delivered-To: mailing list dev@systemml.apache.org Received: (qmail 39814 invoked by uid 99); 5 Jul 2017 21:23:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jul 2017 21:23:34 +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 E569718981B for ; Wed, 5 Jul 2017 21:23:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.895 X-Spam-Level: X-Spam-Status: No, score=-0.895 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id yhe-bHg188z6 for ; Wed, 5 Jul 2017 21:23:32 +0000 (UTC) Received: from mail-pg0-f43.google.com (mail-pg0-f43.google.com [74.125.83.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id A8D3C5FC6C for ; Wed, 5 Jul 2017 21:23:31 +0000 (UTC) Received: by mail-pg0-f43.google.com with SMTP id j186so646506pge.2 for ; Wed, 05 Jul 2017 14:23:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:date:subject:message-id :references:in-reply-to:to; bh=p5RDNBbFkD1FBsLaDi84ldELkbRieqKvf5aQu5bbs/Q=; b=gRGOmYShrpDDSjWYXYDjU3evrl726gBmsZ90/wUEt40Iz7Zu4VmYUhp74/21MqFA6d G1zPzrmDrzWVjuiEBhK/NPFXk2SL+CQV58+OKPRAOD/QozTotISg41fm/OQtSC3zvbGx 7ukkS5Z0skZapy1xynf7zUrmpaqBHmu7O9nB7PzqTMJBBfYp4o8KOFCt25caZDKaq8/y 1WZAE4LMnYAgpd/97fIebkJQWRYBb6tF5lTuIoMGlKMuoDZziaIW0QWJelf1200mPUny iDOPY4CTp+KQI2S4bQXt45BGzSvSzBPFZGkcyllE76Bs5w/tztaEnf7KwjgU4n5jvZ4b Sv3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version:date :subject:message-id:references:in-reply-to:to; bh=p5RDNBbFkD1FBsLaDi84ldELkbRieqKvf5aQu5bbs/Q=; b=KVq1MF3TMB/e5EFsuDHQq7rf2hiAVffXMe+9Qt6RGSO4ulfNW3aaoocN96Buca4200 v8aK4GV7CQEdpNDLsjGfMVd7UDiN4Crd5iK4b7lk2pTZnNJfDjQt7FDuADlOSjjmkT5A lkrvngDDDoNOq/oARyDw2CO1Iz5ttnoDYuTurAjaiyfbyUamFdYvjUiwIa6whd+b4SKa qt1Ci5coatbUdjjQH6jAwoceetnIzXTAEWFsaIu6c0+b/5RbjwqLmFFZBG1ntFf4SZkn P+aEe8Pg+zxu68ctL1iL5wVH7oTiXu9tU7xLvaExXtYCY7iYPk72xBeW59PRQ88XUO59 0IcA== X-Gm-Message-State: AIVw111o2pfy9+2UwP0XkBpNrNRX/SjBn1seB2Gfe9R6MUoMwLlksmnt +zcf3qjeChas2BIn+Xc= X-Received: by 10.98.71.13 with SMTP id u13mr19986732pfa.240.1499289805261; Wed, 05 Jul 2017 14:23:25 -0700 (PDT) Received: from ?IPv6:2600:1010:b049:7bdf:9c40:8fa9:5661:9b7c? ([2600:1010:b049:7bdf:9c40:8fa9:5661:9b7c]) by smtp.gmail.com with ESMTPSA id n71sm108968pfi.95.2017.07.05.14.23.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jul 2017 14:23:24 -0700 (PDT) From: dusenberrymw@gmail.com Content-Type: multipart/alternative; boundary=Apple-Mail-A2884315-486A-4A7D-AF32-3BB307CA82D6 Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (1.0) Date: Wed, 5 Jul 2017 14:23:23 -0700 Subject: Re: Install - Configure Jupyter Notebook Message-Id: <33AA063C-8D48-4A8B-82F1-C9187E3A2E86@gmail.com> References: <81F75F6B-7F9D-4432-BDDE-FD90A9CD6018@thinkwrap.com> In-Reply-To: To: dev@systemml.apache.org X-Mailer: iPhone Mail (14F89) archived-at: Wed, 05 Jul 2017 21:23:36 -0000 --Apple-Mail-A2884315-486A-4A7D-AF32-3BB307CA82D6 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable For a bit more context, this is the general way of starting Jupyter with PyS= park support. In contrast, the usual `jupyter notebook` command will only l= aunch Jupyter with a standard Python kernel. Additionally, all of the extra "conf" settings in that command refer to sett= ings that could be placed in the standard `conf/spark-defaults.conf`file of y= our Spark installation, with spaces instead of the equals signs, in case you= 're already familiar with that. - Mike -- Mike Dusenberry GitHub: github.com/dusenberrymw LinkedIn: linkedin.com/in/mikedusenberry Sent from my iPhone. > On Jul 5, 2017, at 2:14 PM, Niketan Pansare wrote: >=20 > Hi Gustavo, >=20 > You can paste that code into the commandline: > $ PYSPARK_DRIVER_PYTHON=3Djupyter PYSPARK_DRIVER_PYTHON_OPTS=3D"notebook" p= yspark --master local[*] --conf "spark.driver.memory=3D12g" --conf spark.dri= ver.maxResultSize=3D0 --conf spark.akka.frameSize=3D128 --conf spark.default= .parallelism=3D100 >=20 > The above command tells "pyspark" that the python driver is jupyter. For m= ore details, please see https://github.com/apache/spark/blob/master/bin/pysp= ark#L27 >=20 > Alternatively, you can follow Arijit's suggestion. >=20 > Thanks, >=20 > Niketan Pansare > IBM Almaden Research Center > E-mail: npansar At us.ibm.com > http://researcher.watson.ibm.com/researcher/view.php?person=3Dus-npansar >=20 > arijit chakraborty ---07/02/2017 04:22:28 AM---Hi Gustavo, You can put tha= t pyspark details in the jupyter console itself. >=20 > From: arijit chakraborty > To: "dev@systemml.apache.org" > Date: 07/02/2017 04:22 AM > Subject: Re: Install - Configure Jupyter Notebook >=20 >=20 >=20 >=20 > Hi Gustavo, >=20 >=20 > You can put that pyspark details in the jupyter console itself. >=20 >=20 > import os > import sys > import pandas as pd > import numpy as np >=20 > spark_path =3D "C:\spark" > os.environ['SPARK_HOME'] =3D spark_path > os.environ['HADOOP_HOME'] =3D spark_path >=20 > sys.path.append(spark_path + "/bin") > sys.path.append(spark_path + "/python") > sys.path.append(spark_path + "/python/pyspark/") > sys.path.append(spark_path + "/python/lib") > sys.path.append(spark_path + "/python/lib/pyspark.zip") > sys.path.append(spark_path + "/python/lib/py4j-0.10.4-src.zip") >=20 > from pyspark import SparkContext > from pyspark import SparkConf >=20 > sc =3D SparkContext("local[*]", "test") >=20 >=20 > # SystemML Specifications: >=20 >=20 > from pyspark.sql import SQLContext > import systemml as sml > sqlCtx =3D SQLContext(sc) > ml =3D sml.MLContext(sc) >=20 >=20 > But this is not a very good way of doing it. I did it as I'm using windows= and it's easier to do it like that. >=20 >=20 > Regards, >=20 > Arijit >=20 > ________________________________ > From: Gustavo Frederico > Sent: Sunday, July 2, 2017 10:16:03 AM > To: dev@systemml.apache.org > Subject: Install - Configure Jupyter Notebook >=20 >=20 > A basic question: step 3 in https://systemml.apache.org/install-systemml.h= tml for =E2=80=9CConfig= ure Jupyter Notebook=E2=80=9D has > # Start Jupyter Notebook Server > PYSPARK_DRIVER_PYTHON=3Djupyter PYSPARK_DRIVER_PYTHON_OPTS=3D"notebook" py= spark --master local[*] --conf "spark.driver.memory=3D12g" --conf spark.driv= er.maxResultSize=3D0 --conf spark.akka.frameSize=3D128 --conf spark.default.= parallelism=3D100 > Where does that go? There are no details in this step=E2=80=A6 >=20 > Thanks >=20 > Gustavo >=20 >=20 >=20 --Apple-Mail-A2884315-486A-4A7D-AF32-3BB307CA82D6--