<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Which users should run Metron UI and the rest api? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185752#M64883</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/19449/msumbul.html" nodeid="19449"&gt;@msumbul&lt;/A&gt;, it should be metron user. If you start rest and management-ui services through Ambari, you will notice this on the Metron node:&lt;/P&gt;&lt;PRE&gt;[root@metron-12 ~]# ps -ef | grep management_ui | grep -v grep
root     29281     1  0 Jul03 ?        00:00:00 runuser -s /bin/bash metron -c node /usr/metron/0.4.0/web/expressjs/server.js -c /usr/metron/0.4.0/config/management_ui.yml
metron   29283 29281  0 Jul03 ?        00:00:00 node /usr/metron/0.4.0/web/expressjs/server.js -c /usr/metron/0.4.0/config/management_ui.yml
[root@metron-12 ~]# ps -ef | grep rest | grep -v grep
root     26859     1  0 Jul03 ?        00:00:00 runuser -s /bin/bash metron -c java  -jar /usr/metron/0.4.0/lib/metron-rest-0.4.0.jar  --spring.config.location=/usr/metron/0.4.0/config/rest_application.yml --server.port=8082 --spring.profiles.active=dev
metron   26861 26859  0 Jul03 ?        00:50:11 java -jar /usr/metron/0.4.0/lib/metron-rest-0.4.0.jar --spring.config.location=/usr/metron/0.4.0/config/rest_application.yml --server.port=8082 --spring.profiles.active=dev
&lt;/PRE&gt;</description>
    <pubDate>Fri, 14 Jul 2017 12:55:06 GMT</pubDate>
    <dc:creator>asubramanian</dc:creator>
    <dc:date>2017-07-14T12:55:06Z</dc:date>
    <item>
      <title>Which users should run Metron UI and the rest api?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185751#M64882</link>
      <description>&lt;P&gt;Hi,

Normally which user should start the process rest-api and the metron UI? Is it root, metron or hdfs?
I'm asking that because if it's root, then we are not able to create a new sensor because root doesn't have the right access to write in the folder /apps/metron/patterns (in hdfs). Only the user hdfs have the right to write their.&lt;/P&gt;&lt;P&gt;A work around will be to do a chmod on the parent folder, but it's not really secure.&lt;/P&gt;&lt;P&gt;So the question is who should run/start the process metrion UI and rest api?&lt;/P&gt;&lt;P&gt;Thanks,
Michel&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 22:29:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185751#M64882</guid>
      <dc:creator>msumbul1</dc:creator>
      <dc:date>2017-07-13T22:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Which users should run Metron UI and the rest api?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185752#M64883</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/19449/msumbul.html" nodeid="19449"&gt;@msumbul&lt;/A&gt;, it should be metron user. If you start rest and management-ui services through Ambari, you will notice this on the Metron node:&lt;/P&gt;&lt;PRE&gt;[root@metron-12 ~]# ps -ef | grep management_ui | grep -v grep
root     29281     1  0 Jul03 ?        00:00:00 runuser -s /bin/bash metron -c node /usr/metron/0.4.0/web/expressjs/server.js -c /usr/metron/0.4.0/config/management_ui.yml
metron   29283 29281  0 Jul03 ?        00:00:00 node /usr/metron/0.4.0/web/expressjs/server.js -c /usr/metron/0.4.0/config/management_ui.yml
[root@metron-12 ~]# ps -ef | grep rest | grep -v grep
root     26859     1  0 Jul03 ?        00:00:00 runuser -s /bin/bash metron -c java  -jar /usr/metron/0.4.0/lib/metron-rest-0.4.0.jar  --spring.config.location=/usr/metron/0.4.0/config/rest_application.yml --server.port=8082 --spring.profiles.active=dev
metron   26861 26859  0 Jul03 ?        00:50:11 java -jar /usr/metron/0.4.0/lib/metron-rest-0.4.0.jar --spring.config.location=/usr/metron/0.4.0/config/rest_application.yml --server.port=8082 --spring.profiles.active=dev
&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Jul 2017 12:55:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185752#M64883</guid>
      <dc:creator>asubramanian</dc:creator>
      <dc:date>2017-07-14T12:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Which users should run Metron UI and the rest api?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185753#M64884</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/users/11832/asubramanian.html"&gt;@asubramanian&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;I followed the HCP documentation and it's never mention that the user metron should run the process. Moreover in the documentation it's specify to install and run the rest-api and metron-UI manually in command line.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HCP1/HCP-1.1.0/bk_installation/content/install_rest_application_ambari_install.html"&gt;HCP doc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Do you have any docuementation or tutorial to run rest-api and metron-ui with ambari?&lt;/P&gt;&lt;P&gt;In my case, If I run the rest-api and metron-ui with metron user I will have the same problem, which is a permission denied when I try to create a new sensor, because the hdfs path is /apps/metron/patterns has 755 right access. Should I change the owner of the folder to metron?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michel&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2017 15:50:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185753#M64884</guid>
      <dc:creator>msumbul1</dc:creator>
      <dc:date>2017-07-14T15:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: Which users should run Metron UI and the rest api?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185754#M64885</link>
      <description>&lt;P&gt;Hi Michel,&lt;/P&gt;&lt;P&gt;I'm facing the same issue even when I'm trying to connect to Metron Management UI, it always gives me "Login failed for metron" and what is interesting is according to HCP install docs, when I test the swagger (&lt;A href="http://&amp;lt;REST_HOST"&gt;http://:8082/swagger-ui.html#)&lt;/A&gt;&amp;gt;:8082/swagger-ui.html#) connection it asks for username and password and it keeps looping no matter what you enter. if I cancel the login pop-up I can see that it was trying to connect using org.h2.jdbc.JdbcSQLException&lt;B&gt; &lt;/B&gt;&lt;EM&gt;despite that application.yml clearly is mentioned that mysql is used.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This application has no explicit mapping for /error, so you are seeing this as a fallback.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Thu Jul 20 18:18:35 EDT 2017
There was an unexpected error (type=Unauthorized, status=401).
PreparedStatementCallback; bad SQL grammar [select username,password,enabled from users where username = ?]; nested exception is org.h2.jdbc.JdbcSQLException: Table "USERS" not found; SQL statement: select username,password,enabled from users where username = ? [42102-192] &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Have you encountered anything like this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;P&gt;&lt;EM&gt;
&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jul 2017 05:35:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185754#M64885</guid>
      <dc:creator>fadelkam</dc:creator>
      <dc:date>2017-07-21T05:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Which users should run Metron UI and the rest api?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185755#M64886</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/users/11832/asubramanian.html"&gt;@asubramanian&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;have you encountered this issue before? when trying to connect to Metron UI it always fails with no detail other than the message "Login failed for metron"&lt;/P&gt;&lt;P&gt;I can login to mysql using the metron metron username and pass. no issues &lt;/P&gt;&lt;P&gt;Also in the HCP doc it is mentioned that to make sure &lt;A href="http://METRON_HOST:8082/swagger-ui.html#" target="_blank"&gt;http://METRON_HOST:8082/swagger-ui.html#&lt;/A&gt;&lt;/P&gt;&lt;P&gt;in bk_installation pdf:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;EM&gt;14.Make sure you can access the Swagger UI at &lt;A href="http://host:port/swagger-ui.html#/" target="_blank"&gt;http://host:port/swagger-ui.html#/&lt;/A&gt;.
The exposed REST endpoints can be accessed with the Swagger UI at &lt;A href="http://host:port/" target="_blank"&gt;http://host:port/&lt;/A&gt;
swagger-ui.html#/. The default port is 8082 but can be changed in the $METRON_HOME/
config/application.yml file by setting "server.port" to the desired port.&lt;/EM&gt;
&lt;/BLOCKQUOTE&gt;&lt;P&gt;when I go to the url it asks for username and password. I assume it's metron credentials. but it's keeps poping the login box. If I cancel it, the landing page looks like this:&lt;/P&gt;&lt;H1&gt;&lt;EM&gt;Whitelabel Error Page&lt;/EM&gt;&lt;/H1&gt;&lt;P&gt;&lt;EM&gt;This application has no explicit mapping for /error, so you are seeing this as a fallback.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Mon Jul 31 16:55:39 EDT 2017
There was an unexpected error (type=Unauthorized, status=401).
PreparedStatementCallback; bad SQL grammar [select username,password,enabled from users where username = ?]; nested exception is org.h2.jdbc.JdbcSQLException: Table "USERS" not found; SQL statement: select username,password,enabled from users where username = ? [42102-192]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I don't get it why it's complaining about h2.jdbc connection while I already change the connection detail to mysql in ../config/application.yml&lt;/P&gt;&lt;P&gt;Any hint would be appreciated!&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 03:59:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185755#M64886</guid>
      <dc:creator>fadelkam</dc:creator>
      <dc:date>2017-08-01T03:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Which users should run Metron UI and the rest api?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185756#M64887</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/113997/which-users-should-run-metron-ui-and-the-rest-api.html#"&gt;@msumbul&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Rest and Mgt. UI should be run as user metron. It would work with other users but then you can expect ACL issues on folders like you mention. Don't be afraid to change a few -rwx- ACL's along the way.&lt;/P&gt;&lt;P&gt;Metron Rest and Metron Mgt. UI can only be managed from Ambari as of the new HCP1.2.1.0 release which is now available:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HCP1/HCP-1.2.1/bk_release-notes/content/hcs_1_0_repos.html"&gt;HCP-1.2.1.0&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In that release you'll also get proper OS level services for both. Those are then triggered from the Ambari UI.&lt;/P&gt;&lt;P&gt;Everything prior to that; you can daemonize the Rest and Mgt. UI with nohup, screen or even create your own services for it, but it is not supported out-of-the-box, that is just the state of the project right now. I have created both as services myself for HCP-1.1.0.0 so it can be done. &lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:24:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185756#M64887</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2017-08-10T18:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: Which users should run Metron UI and the rest api?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185757#M64888</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19200/fadelkam.html" nodeid="19200"&gt;@Frank Kam&lt;/A&gt; &lt;/P&gt;&lt;P&gt;(Maybe you can create a separate topic for your problem as I think it is quite different from the original question.)&lt;/P&gt;&lt;P&gt;Did you create the USERS and AUTHORITIES table on your chosen SQL platform?&lt;/P&gt;&lt;P&gt;Did you insert the designated user data in those tables for the user you expect to log on with?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Aug 2017 18:27:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185757#M64888</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2017-08-10T18:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: Which users should run Metron UI and the rest api?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185758#M64889</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/19449/msumbul.html" nodeid="19449"&gt;@msumbul&lt;/A&gt; Please mark the question as answered if sufficiently answered&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 15:11:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Which-users-should-run-Metron-UI-and-the-rest-api/m-p/185758#M64889</guid>
      <dc:creator>jknulst</dc:creator>
      <dc:date>2017-08-16T15:11:39Z</dc:date>
    </item>
  </channel>
</rss>

