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 4EBB6200C6A for ; Wed, 19 Apr 2017 16:32:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 4B5BC160B94; Wed, 19 Apr 2017 14:32:59 +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 20235160B86 for ; Wed, 19 Apr 2017 16:32:57 +0200 (CEST) Received: (qmail 4373 invoked by uid 500); 19 Apr 2017 14:32:57 -0000 Mailing-List: contact user-help@predictionio.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@predictionio.incubator.apache.org Delivered-To: mailing list user@predictionio.incubator.apache.org Received: (qmail 4362 invoked by uid 99); 19 Apr 2017 14:32:57 -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, 19 Apr 2017 14:32:57 +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 DE8A8189B4D for ; Wed, 19 Apr 2017 14:32:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.205 X-Spam-Level: X-Spam-Status: No, score=0.205 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, JMQ_TRACKER=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-2.796, RCVD_IN_SORBS_SPAM=0.5, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=occamsmachete-com.20150623.gappssmtp.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6N7QzY34n2p0 for ; Wed, 19 Apr 2017 14:32:54 +0000 (UTC) Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B9CE55FE1E for ; Wed, 19 Apr 2017 14:32:53 +0000 (UTC) Received: by mail-io0-f174.google.com with SMTP id k87so23338215ioi.0 for ; Wed, 19 Apr 2017 07:32:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=occamsmachete-com.20150623.gappssmtp.com; s=20150623; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=zoLvn3miCShqLKbZ99VUFDOTX88FjseErO3/bFvLH9w=; b=F8jwqX6F3W9M42DRYWWR0lzW+T4yhx6BRK1lfICwcziP0cnOXtYO3C1tgeGNH3y7bN FEqMoa3qKCi2erzx9kNMLpGSodL4/aHFW7yp4CB5MXVUtflAaXrzoGrJ7C7cXFulFhAX +eCyh3xawcr5mtM24MdTdZnJOxWNAytf1prfvBsdCehXf/XHWNMN55yJhE6g0/a8BLOU MOmCfVhqKHefFv5VbhepT0V0dKufJIhgXeDkc2p9Ghy2DU3prTdUuJYnn/4MDQOTaGoT E6QE9LFmEzCUddcCGPQ0jujCtq0meonvCzWpv8DlGX8P/rtwVoxey6uMCCuh1OOt0IXH pH0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=zoLvn3miCShqLKbZ99VUFDOTX88FjseErO3/bFvLH9w=; b=YKuJm+9KlPMC6OOF5qjWXyCKaHgbop4mwDgjUmynAMPFDpAfke9J8PIs+fSMEZn/ek bQUEJ2pTlN2GQ+5ik/tzovhK8uMZ+0UUSALVRelFkA+sULKoCmdrQY8AkrCME2wcfMqu 06MOWVTB327HYzyaOiUOQMlqz5N6KmnMdOP1hupijTwgJJiKw4mTgTeCP1U7B6Wjx689 RQ7Mz9jcb9YengwxXXqBepLvS1kHDQ+GiMSwfuhLAb5GGvR+4MaWgF+jBlWFnoTWFtEk bqxHP5nUe3ZFeVPEsLlAziaQebVVx9ZyI8HCWaDLOoxuQU+TPAdF0khadQpF2WQEVH6a D8BQ== X-Gm-Message-State: AN3rC/5h0VHTlbwRrAZIYDP1Dv8I8bzkRNEanlMErdHyrUFdKsBcka11 klF7bm2B4Ys14DSdbEE= X-Received: by 10.99.181.18 with SMTP id y18mr3392517pge.192.1492612366802; Wed, 19 Apr 2017 07:32:46 -0700 (PDT) Received: from [192.168.0.6] (c-24-18-213-211.hsd1.wa.comcast.net. [24.18.213.211]) by smtp.gmail.com with ESMTPSA id x5sm5113216pfd.94.2017.04.19.07.32.45 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 19 Apr 2017 07:32:46 -0700 (PDT) From: Pat Ferrel Content-Type: multipart/alternative; boundary="Apple-Mail=_04A4E7C4-3624-4D17-8C3F-7D43C3435CB9" Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: Invalid app name INVALID_APP_NAME Date: Wed, 19 Apr 2017 07:32:44 -0700 References: To: user@predictionio.incubator.apache.org In-Reply-To: Message-Id: <2290537E-5D5E-424E-A8F8-6356FFA0004D@occamsmachete.com> X-Mailer: Apple Mail (2.3273) archived-at: Wed, 19 Apr 2017 14:32:59 -0000 --Apple-Mail=_04A4E7C4-3624-4D17-8C3F-7D43C3435CB9 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Templates are not part of the PredictionIO, they are often supported by = their authors. Check the Template gallery, there should be a support = link for each Template, some are Apache, some are supported by their = authors. Their may be a github issues link there for author support. Not all Templates support evaluation so make sure the hardcoded name = does not indicate lack of support.=20 On Apr 18, 2017, at 10:19 PM, Ravi Kiran wrote: @Vaghawan, Issue is sorted out. I dont know for some reason app name was = hardcoded (as "INVALID_APP_NAME") in template I am using. I changed that = name to my app name and it worked.=20 Link of template I am using = https://github.com/apache/incubator-predictionio-template-attribute-based-= classifier/blob/develop/src/main/scala/Evaluation.scala = , Line 27 This is not the way it should be hardcoded or am I missing something? On Wed, Apr 19, 2017 at 9:10 AM, Vaghawan Ojha > wrote: Ya I see! the pio path shouldn't be the problem. But you can easily = export the pio path.=20 Ya, you can stick with the same pio, but could create new app from = scratch, like downloading the template and creating a new pio app and = changing engine.json.=20 Hope this should work.=20 On Wed, Apr 19, 2017 at 9:22 AM, Ravi Kiran > wrote: I am running "pio build" from template dir. But pio path is not = configured. So, everytime I have to give absolute path of pio. Could = that be a problem (But most queries are working).=20 For e.g. ../bin/pio build ../bin/pio eval mlframework.AccuracyEvaluation = mlframework.EngineParamsList ../bin app list I will made new app right from scratch, even then this issue persists :( On Wed, Apr 19, 2017 at 9:00 AM, Vaghawan Ojha > wrote: Hi,=20 This seems fine, did you make sure to run pio build from that template = dir? In case still not working, I would suggest you to delete the = wineapp(if you haven't imported the events yet) and recreate a app, and = change the engine.json and build again.=20 I had this problem with both MyRecommendation and Universal Recommender = as well, in case of MyRecommendation, I rebuilt the app and it worked.=20= Please try that, it may work for you as well.=20 Thanks On Wed, Apr 19, 2017 at 9:05 AM, Ravi Kiran > wrote: [INFO] [App$] Name | ID | = Access Key | Allowed Event(s) [INFO] [App$] app10 | 10 | = mnbvcxz | (all) [INFO] [App$] sample_app10 | 11 | = 1234 | (all) [INFO] [App$] sample_app21 | 13 | = 4321 | (all) [INFO] [App$] sample_app22 | 14 | = 4321abcd | (all) [INFO] [App$] sample_app23 | 15 | = 4321abcde | (all) [INFO] [App$] sample_app26 | 18 | = 4321abcdefg | (all) [INFO] [App$] wineapp | 19 | = wineappeine | (all) [INFO] [App$] Finished listing 19 app(s). =20 This is output of pio app list On Wed, Apr 19, 2017 at 8:42 AM, Ravi Kiran > wrote: Contents of engine.json { "id": "default", "description": "Default settings", "engineFactory": "mlframework.ClassificationEngine", "datasource": { "params": { "appName": "wineapp" } }, "algorithms": [ { "name": "naive", "params": { "lambda": 1.0 } } ] } Location of engine.json = /home/user_name/Documents/code/apache-predictionio-0.10.0-incubating/Predi= ctionIO-0.10.0-incubating/sample_classifier/engine.json I have installed template in sample_classifier folder On Wed, Apr 19, 2017 at 8:32 AM, Vaghawan Ojha > wrote: What does your pio app list produce?=20 And can you also send a screenshot of your engine.json. This engine.json = should be inside your template directory where you installed your = template.=20 I had faced this issue, but resolved it too. Let me know with your app = list screenshot and corresponding engine.json Thanks On Wed, Apr 19, 2017 at 8:45 AM, Ravi Kiran > wrote: @Vaghawan, I have updated app_name in engine.json . And then 'pio Build' = and evaluation query. Still this issue exists On 19-Apr-2017 8:14 AM, "Vaghawan Ojha" > wrote: Hi,=20 It seems you haven't changed the app name in your engine.json. There is = an engine.json in your template directory, please make sure that you = have changed that name.=20 And it will works. Make sure you input the right appname in your = engine.json.=20 Thanks On Wed, Apr 19, 2017 at 5:33 AM, Ravi Kiran > wrote: Hi,=20 When I try to evaluate I am getting following error. [ERROR] [Common$] Invalid app name INVALID_APP_NAME Exception in thread "main" java.lang.IllegalArgumentException: Invalid = app name INVALID_APP_NAME I have updated app name in engine.json This app is in 'pio app list' I have also done 'pio build', 'pio train' and 'pio deploy' before = running evaluation query. Can you please help me resolve this query? Thanks --Apple-Mail=_04A4E7C4-3624-4D17-8C3F-7D43C3435CB9 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Templates are not part of the PredictionIO, they are often = supported by their authors. Check the Template gallery, there should be = a support link for each Template, some are Apache, some are supported by = their authors. Their may be a github issues link there for author = support.

Not all = Templates support evaluation so make sure the hardcoded name does not = indicate lack of support. 


On = Apr 18, 2017, at 10:19 PM, Ravi Kiran <ravi.gunale@gmail.com> wrote:

@Vaghawan, Issue is sorted out. I dont know for some reason = app name was hardcoded (as "INVALID_APP_NAME") in template I am using. I = changed that name to my app name and it worked. 

This = is not the way it should be hardcoded or am I missing = something?

On Wed, Apr 19, 2017 at 9:10 AM, Vaghawan Ojha = <vaghawan781@gmail.com> = wrote:
Ya I see! the pio path shouldn't be the problem. But you can = easily export the pio path. 

Ya, you can stick with the same pio, but could create new = app from scratch, like downloading the template and creating a new pio = app and changing engine.json. 

Hope  this should = work. 

On Wed, = Apr 19, 2017 at 9:22 AM, Ravi Kiran <ravi.gunale@gmail.com> wrote:

I am running "pio build" from = template dir.  But pio path is not configured. So, everytime I have = to give absolute path of pio. Could that be a problem (But most queries = are working). 
For e.g.
 ../bin/pio build
../bin/pio eval = mlframework.AccuracyEvaluation mlframework.EngineParamsList
../bin app list

I will made new app right from scratch, even then this issue = persists :(

On Wed, Apr 19, 2017 at 9:00 AM, = Vaghawan Ojha <vaghawan781@gmail.com> wrote:
Hi, 

This seems fine, did you make sure to run pio build from that = template dir? In case still not working, I would suggest you to delete = the wineapp(if you haven't imported the events yet) and recreate a app, = and change the engine.json and build again. 
I had this problem with both = MyRecommendation and Universal Recommender as well, in case of = MyRecommendation, I rebuilt the app and it worked. 

Please try that, it may = work for you as well. 

Thanks

On Wed, = Apr 19, 2017 at 9:05 AM, Ravi Kiran <ravi.gunale@gmail.com> wrote:
[INFO] [App$]         =         Name |   ID |       =                     =                     =         Access Key | Allowed Event(s)
[INFO] [App$]             =    app10 |   10 |           =                     =                     =        mnbvcxz | (all)
[INFO] = [App$]         sample_app10 |   11 |   =                     =                     =                   1234 | = (all)
[INFO] [App$]         = sample_app21 |   13 |             =                     =                     =         4321 | (all)
[INFO] = [App$]         sample_app22 |   14 |   =                     =                     =               4321abcd | = (all)
[INFO] [App$]         = sample_app23 |   15 |             =                     =                     =    4321abcde | (all)
[INFO] [App$]   =       sample_app26 |   18 |       =                     =                     =        4321abcdefg | (all)
[INFO]= [App$]              wineapp |   = 19 |                   =                     =                wineappeine | = (all)
[INFO] [App$] Finished listing 19 = app(s).
 

This is output of pio app = list

On = Wed, Apr 19, 2017 at 8:42 AM, Ravi Kiran <ravi.gunale@gmail.com> wrote:
Contents of engine.json

{
  "id": "default",
  = "description": "Default settings",
  = "engineFactory": "mlframework.ClassificationEngine",
  "datasource": {
    "params": {
    =   "appName": "wineapp"
    = }
  },
  = "algorithms": [
    {
      "name": "naive",
      "params": {
  =       "lambda": 1.0
    =   }
    }
  = ]
}


Location of engine.json
/home/user_name/Documents/code/apache-predictionio-0.10.0-incubating/PredictionIO-0.10.0-incubating/sample_classifier/engine.json
I have installed template in = sample_classifier folder




On Wed, Apr 19, 2017 at 8:32 AM, Vaghawan Ojha = <vaghawan781@gmail.com> = wrote:
What does your pio app list produce? 

And can you also send a screenshot of = your engine.json. This engine.json should be inside your template = directory where you installed your template. 

I had faced  this = issue, but resolved it too. Let me know with your app list screenshot = and corresponding engine.json

Thanks

On Wed, = Apr 19, 2017 at 8:45 AM, Ravi Kiran <ravi.gunale@gmail.com> wrote:
@Vaghawan, I have updated app_name in = engine.json . And then 'pio Build' and evaluation query. Still this = issue exists


On 19-Apr-2017 8:14 AM, "Vaghawan Ojha" <vaghawan781@gmail.com> wrote:
Hi, 

It seems you haven't = changed the app name in your engine.json. There is an engine.json in = your template directory, please make sure that you have changed that = name. 

And = it will works. Make sure you input the right appname in your = engine.json. 

Thanks


On Wed, Apr 19, 2017 at 5:33 AM, Ravi Kiran <ravi.gunale@gmail.com> = wrote:
Hi, 
When I try to evaluate I am getting = following error.


[ERROR] = [Common$] Invalid app name INVALID_APP_NAME
Exception= in thread "main" java.lang.IllegalArgumentException: = Invalid app name INVALID_APP_NAME


I = have updated app name in engine.json
This app is in = 'pio app list'
I have also done 'pio build', 'pio = train' and 'pio deploy' before running evaluation query.


Can you please help me resolve this query?

Thanks










= --Apple-Mail=_04A4E7C4-3624-4D17-8C3F-7D43C3435CB9--