Is the EventServer running?
On Feb 16, 2017, at 9:01 AM, Сергей Купрюшин <[email protected]> wrote: yes, i try that. And try insert <My_Access_Key> in script import_eventserver.py as parameter: parser.add_argument('--access_key', default='My_Access_Key') curl return the same error. On Thu, Feb 16, 2017 at 7:28 PM, Daniel Gabrieli <[email protected] <mailto:[email protected]>> wrote: Are you actually providing your access key to the python command? like: python data/import_eventserver.py --access_key= <My_Access_Key> On Thu, Feb 16, 2017 at 10:33 AM Сергей Купрюшин <[email protected] <mailto:[email protected]>> wrote: Hi all! I'm newbie in predictionio. I try to install test template similar-product, and run all as describe in manual: 1. pio template get apache/incubator-predictionio-template-similar-product MySimilarProduct2 2. cd MySimilarProduct2 3. pio app new TestApp1 [INFO] [HBLEvents] The table pio_event:events_7 doesn't exist yet. Creating now... [INFO] [App$] Initialized Event Store for this app ID: 7. [INFO] [App$] Created new app: [INFO] [App$] Name: TestApp1 [INFO] [App$] ID: 7 [INFO] [App$] Access Key: <My_Access_Key> 4. pio build [INFO] [Console$] Using command '/root/PredictionIO/sbt/sbt' at the current working directory to build. [INFO] [Console$] If the path above is incorrect, this process will fail. [INFO] [Console$] Uber JAR disabled. Making sure lib/pio-assembly-0.10.0-incubating.jar is absent. [INFO] [Console$] Going to run: /root/PredictionIO/sbt/sbt package assemblyPackageDependency [INFO] [Console$] Build finished successfully. [INFO] [Console$] Looking for an engine... [INFO] [Console$] Found template-scala-parallel-similarproduct-assembly-0.1-SNAPSHOT-deps.jar [INFO] [Console$] Found template-scala-parallel-similarproduct_2.10-0.1-SNAPSHOT.jar [INFO] [RegisterEngine$] Registering engine <some string> [INFO] [Console$] Your engine is ready for training. 5. python data/import_eventserver.py --access_key Namespace(access_key='My_Access_Key', url='http://localhost:7070 <http://localhost:7070/>') {u'status': u'alive'} Importing data... Set user u1 Traceback (most recent call last): File "import_eventserver.py", line 73, in <module> import_events(client) File "import_eventserver.py", line 24, in import_events entity_id=user_id File "/usr/local/lib/python2.7/dist-packages/predictionio/__init__.py", line 247, in create_event event_time).get_response() File "/usr/local/lib/python2.7/dist-packages/predictionio/connection.py", line 111, in get_response self._response = self.rfunc(tmp_response) File "/usr/local/lib/python2.7/dist-packages/predictionio/__init__.py", line 122, in _acreate_resp response.body)) predictionio.NotCreatedError: request: POST /events.json?accessKey=My_Access_Key {'entityId': 'u1', 'entityType': 'user', 'event': '$set', 'eventTime': '2017-02-16T14:20:40.633+0000'} /events.json?accessKey=My_Access_Key ?entityId=u1&entityType=user&event=%24set&eventTime=2017-02-16T14%3A20%3A40.633%2B0000 status: 401 body: {"message":"Invalid accessKey."} PIO version 0.10.0. Installed with HBASE and Elasticsearch. Make some changes in installation script (install.sh in attachments). In base version it install predictionio from develop branch, i make it for 0.10.0 version and release/0.10.0 branch. The 3 step (3. pio app new TestApp1) run 20-40 minutes. That's OK? With MySQL that step was run for about 2 hours, and no result. So i try install another engine. My HW Google-cloud compute instance: n1-standard-2 (2 virtual CPU, 7,5 Gb memory). OS: Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-62-generic x86_64). What I do wrong? And what i can do for fix errors? Thanks in advice. -- С уважением, Купрюшин Сергей. <http://surfstudio.ru/> SurfStudio LLC surfstudio.ru <http://surfstudio.ru/> Старший системный администратор skype: skupryshin тел.: +7-920-438-20-89 <tel:+7%20920%20438-20-89> -- С уважением, Купрюшин Сергей. <http://surfstudio.ru/> SurfStudio LLC surfstudio.ru <http://surfstudio.ru/> Старший системный администратор skype: skupryshin тел.: +7-920-438-20-89
