<?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: Exception in Main Thread - Atlas Service Exception in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165891#M53782</link>
    <description>&lt;P&gt;Yes it did work and added the sample data and entities to the server! Thank you so much for the suggestions! &lt;/P&gt;&lt;P&gt;Using username admin and password admin did work! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Feb 2017 19:23:46 GMT</pubDate>
    <dc:creator>b_arshad</dc:creator>
    <dc:date>2017-02-08T19:23:46Z</dc:date>
    <item>
      <title>Exception in Main Thread - Atlas Service Exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165887#M53778</link>
      <description>&lt;P&gt;I am following the tutorial: &lt;A href="http://atlas.incubator.apache.org/InstallationSteps.html" target="_blank"&gt;http://atlas.incubator.apache.org/InstallationSteps.html&lt;/A&gt; for installing an embedded hbase and solr configuration for atlas. I have built and installed as the steps suggest in the tutorial above and when I start the server using command bin/atlas-start.py I get the following:&lt;/P&gt;&lt;P&gt;hduser@ubuntu:~/atlas/distro/target/apache-atlas-0.8-incubating-SNAPSHOT-bin/apache-atlas-0.8-incubating-SNAPSHOT$ bin/atlas_start.py &lt;/P&gt;&lt;P&gt;configured for local hbase. &lt;/P&gt;&lt;P&gt;hbase started. &lt;/P&gt;&lt;P&gt;configured for local solr. &lt;/P&gt;&lt;P&gt;solr started.
setting up solr collections... &lt;/P&gt;&lt;P&gt;Apache Atlas Server started!!!&lt;/P&gt;&lt;P&gt;When I try to run the command bin/quick_start.py to add sample model and data I am getting the following error:&lt;/P&gt;&lt;P&gt;hduser@ubuntu:~/atlas/distro/target/apache-atlas-0.8-incubating-SNAPSHOT-bin/apache-atlas-0.8-incubating-SNAPSHOT$ bin/quick_start.py &lt;/P&gt;&lt;P&gt;Enter username for atlas :-
bilal &lt;/P&gt;&lt;P&gt;Enter password for atlas :-
bilal&lt;/P&gt;&lt;P&gt;Creating sample types: &lt;/P&gt;&lt;P&gt;Exception in thread "main" org.apache.atlas.AtlasServiceException: Metadata service API org.apache.atlas.AtlasBaseClient$APIInfo@35612e7c failed with status 401 (Unauthorized) Response Body (&amp;lt;html&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&amp;gt;
&amp;lt;title&amp;gt;Error 401 Username not found.bilal&amp;lt;/title&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&amp;lt;h2&amp;gt;HTTP ERROR 401&amp;lt;/h2&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;Problem accessing /api/atlas/v2/types/typedefs/. Reason: &lt;/P&gt;&lt;P&gt;&amp;lt;pre&amp;gt;  Username not found.bilal&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;hr&amp;gt;&amp;lt;i&amp;gt;&amp;lt;small&amp;gt;Powered by Jetty://&amp;lt;/small&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;hr/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt;&lt;/P&gt;&lt;P&gt; &amp;lt;/html&amp;gt; &lt;/P&gt;&lt;P&gt;) &lt;/P&gt;&lt;P&gt;at org.apache.atlas.AtlasBaseClient.callAPIWithResource(AtlasBaseClient.java:327)
   at &lt;/P&gt;&lt;P&gt;org.apache.atlas.AtlasBaseClient.callAPI(AtlasBaseClient.java:419)
   at &lt;/P&gt;&lt;P&gt;org.apache.atlas.AtlasTypedefClientV2.createAtlasTypeDefs(AtlasTypedefClientV2.java:147)
   at &lt;/P&gt;&lt;P&gt;org.apache.atlas.examples.QuickStartV2.createTypes(QuickStartV2.java:206)
   at &lt;/P&gt;&lt;P&gt;org.apache.atlas.examples.QuickStartV2.runQuickstart(QuickStartV2.java:153)
   at &lt;/P&gt;&lt;P&gt;org.apache.atlas.examples.QuickStartV2.main(QuickStartV2.java:138) &lt;/P&gt;&lt;P&gt;No sample data added to Apache Atlas Server.&lt;/P&gt;&lt;P&gt;Can anyone kindly suggest what is the way around? Any help will be highly appreciated! Kindly find the logs here: &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/12222-atlas-logs-exception-in-main-thread.txt"&gt;atlas-logs-exception-in-main-thread.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:09:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165887#M53778</guid>
      <dc:creator>b_arshad</dc:creator>
      <dc:date>2017-02-08T19:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in Main Thread - Atlas Service Exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165888#M53779</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14078/barshad.html" nodeid="14078"&gt;@Bilal Arshad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This error is due to username:bilal not recognized by Atlas. If you want to use the default username that comes with atlas bits then please use username as admin and password as admin.&lt;/P&gt;&lt;P&gt;If you want to create a user for atlas then please add the username and password details to user-credentails.properties file. Please refer below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/incubator-atlas/blob/master/distro/src/conf/users-credentials.properties" target="_blank"&gt;https://github.com/apache/incubator-atlas/blob/master/distro/src/conf/users-credentials.properties&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;#username=group::sha256-password
admin=ADMIN::8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918
rangertagsync=RANGER_TAG_SYNC::e3f67240f5117d1753c940dae9eea772d36ed5fe9bd9c94a300e40413f1afb9d&lt;/PRE&gt;&lt;P&gt;The default users that comes with atlas distro is admin and rangertagsync.&lt;/P&gt;&lt;P&gt;The same information can be found in this wiki: &lt;A href="http://atlas.incubator.apache.org/Authentication-Authorization.html" target="_blank"&gt;http://atlas.incubator.apache.org/Authentication-Authorization.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please dont forget to restart atlas after adding new user to the properties file.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:15:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165888#M53779</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2017-02-08T19:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in Main Thread - Atlas Service Exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165889#M53780</link>
      <description>&lt;P&gt;Also when I try to run the following command &lt;/P&gt;&lt;PRE&gt;curl -v &amp;lt;a href="http://localhost:21000/api/atlas/admin/version"&amp;gt;http://localhost:21000/api/atlas/admin/version&amp;lt;/a&amp;gt;&lt;/PRE&gt;&lt;P&gt;to check that the server is running and its version it is giving me the following error:&lt;/P&gt;&lt;P&gt;* Hostname was NOT found in DNS cache &lt;/P&gt;&lt;P&gt;*  Trying 127.0.0.1... &lt;/P&gt;&lt;P&gt;* Connected to localhost (127.0.0.1) port 21000 (#0)&lt;/P&gt;&lt;P&gt;&amp;gt; GET /api/atlas/admin/version HTTP/1.1 &lt;/P&gt;&lt;P&gt;&amp;gt; User-Agent: curl/7.35.0 &lt;/P&gt;&lt;P&gt;&amp;gt; Host: localhost:21000 &lt;/P&gt;&lt;P&gt;&amp;gt; Accept: */* &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt; HTTP/1.1 401 Full authentication is required to access this resource &lt;/P&gt;&lt;P&gt;&amp;lt; Date: Wed, 08 Feb 2017 11:14:58 GMT
&amp;lt; Set-Cookie: ATLASSESSIONID=154eke7lzmtrf1vhnfhxd5ivml;Path=/;HttpOnly &lt;/P&gt;&lt;P&gt;&amp;lt; X-Frame-Options: DENY &lt;/P&gt;&lt;P&gt;&amp;lt; WWW-Authenticate: Basic realm="atlas.com"
&amp;lt; Content-Type: text/html; charset=ISO-8859-1 &lt;/P&gt;&lt;P&gt;&amp;lt; Cache-Control: must-revalidate,no-cache,no-store
&amp;lt; Content-Length: 399
* Server Jetty(9.2.12.v20150709) is not blacklisted &lt;/P&gt;&lt;P&gt;&amp;lt; Server: Jetty(9.2.12.v20150709) &lt;/P&gt;&lt;P&gt;&amp;lt; &lt;/P&gt;&lt;P&gt;&amp;lt;html&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;title&amp;gt;Error 401 Full authentication is required to access this resource&amp;lt;/title&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;/head&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;body&amp;gt;&amp;lt;h2&amp;gt;HTTP ERROR 401&amp;lt;/h2&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;p&amp;gt;Problem accessing /api/atlas/admin/version. Reason: &lt;/P&gt;&lt;P&gt;&amp;lt;pre&amp;gt;  Full authentication is required to access this resource&amp;lt;/pre&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;hr&amp;gt;&amp;lt;i&amp;gt;&amp;lt;small&amp;gt;Powered by Jetty://&amp;lt;/small&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;hr/&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/body&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;lt;/html&amp;gt; &lt;/P&gt;&lt;P&gt;* Connection #0 to host localhost left intact&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:17:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165889#M53780</guid>
      <dc:creator>b_arshad</dc:creator>
      <dc:date>2017-02-08T19:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in Main Thread - Atlas Service Exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165890#M53781</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14078/barshad.html" nodeid="14078"&gt;@Bilal Arshad&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;To access any API through command line you need authenticate with the Atlas. &lt;/P&gt;&lt;P&gt;For example: Since atlas comes with default users you can use the below command to get the version.&lt;/P&gt;&lt;PRE&gt;curl -v -u admin:admin &lt;A href="http://localhost:21000/api/atlas/admin/version" target="_blank"&gt;http://localhost:21000/api/atlas/admin/version&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;In the above command username is admin and password is admin&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:19:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165890#M53781</guid>
      <dc:creator>apathan</dc:creator>
      <dc:date>2017-02-08T19:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in Main Thread - Atlas Service Exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165891#M53782</link>
      <description>&lt;P&gt;Yes it did work and added the sample data and entities to the server! Thank you so much for the suggestions! &lt;/P&gt;&lt;P&gt;Using username admin and password admin did work! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:23:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165891#M53782</guid>
      <dc:creator>b_arshad</dc:creator>
      <dc:date>2017-02-08T19:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exception in Main Thread - Atlas Service Exception</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165892#M53783</link>
      <description>&lt;P&gt;The command mentioned above is showing the correct version, so thank you so much! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2017 19:24:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Exception-in-Main-Thread-Atlas-Service-Exception/m-p/165892#M53783</guid>
      <dc:creator>b_arshad</dc:creator>
      <dc:date>2017-02-08T19:24:24Z</dc:date>
    </item>
  </channel>
</rss>

