<?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: Can we not have HS2 and Spark Thrift Server (STS) running on the same node? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157927#M28952</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Did you tried the workaround?&lt;/P&gt;</description>
    <pubDate>Wed, 25 May 2016 16:26:24 GMT</pubDate>
    <dc:creator>jyadav</dc:creator>
    <dc:date>2016-05-25T16:26:24Z</dc:date>
    <item>
      <title>Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157905#M28930</link>
      <description>&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am following the document &lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_installing_manually_book/content/starting_sts.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_installing_manually_book/content/starting_sts.html&lt;/A&gt; which talks about setting up of STS and starting the service. &lt;/P&gt;&lt;P&gt;In our Keerberized cluster, after successful service addition, when I try to start the service, I observed that it fails.&lt;/P&gt;&lt;PRE&gt;16/05/19 10:27:00 INFO AbstractService: Service:HiveServer2 is started.
16/05/19 10:27:00 INFO HiveThriftServer2: HiveThriftServer2 started
16/05/19 10:27:00 WARN SparkConf: The configuration key 'spark.yarn.applicationMaster.waitTries' has been deprecated as of Spark 1.3 and and may be removed in the future. Please use the new key 'spark.yarn.am.waitTime' instead.
16/05/19 10:27:00 INFO Server: jetty-8.y.z-SNAPSHOT
16/05/19 10:27:00 WARN AbstractLifeCycle: FAILED SelectChannelConnector@0.0.0.0:10001: java.net.BindException: Address already in use
java.net.BindException: Address already in use
        at sun.nio.ch.Net.bind0(Native Method)&lt;/PRE&gt;&lt;P&gt; When I observed the logs it says, port 10001 is already in use BindingException. In HiveServer2 I notice that for HTTP transport mode, bound port is 10001. &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;When I manually stopped HS2 on the same host and then started STS, then it works fine.
&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Here I've a few questions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1) in the log it says that HS2 is started.. Is it trying to start HS2 ? &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2) Port issue: Why still 10001 and not &lt;/STRONG&gt;&lt;STRONG&gt;10015&lt;/STRONG&gt;&lt;STRONG&gt;?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For the STS, we have configured the port &lt;/STRONG&gt;&lt;STRONG&gt;10015 &lt;/STRONG&gt;&lt;STRONG&gt;but when I try to connect using beeline : (After having a valid ticket)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;beeline -u "jdbc:hive2://&lt;STRONG&gt;STSHOST:10015&lt;/STRONG&gt;/default;httpPath=cliservice;transportMode=http;principal=hive/_HOST@Realm" it &lt;STRONG&gt;fails &lt;/STRONG&gt;but when I try to connect on port 10001 it works (previously I used to connect to HS2 using the same command).&lt;/P&gt;&lt;P&gt;beeline -u "jdbc:hive2://&lt;STRONG&gt;STSHOST:10001&lt;/STRONG&gt;/default;httpPath=cliservice;transportMode=http;principal=hive/_HOST@Realm"&lt;/P&gt;&lt;P&gt;And I can use STS to submit the sqls. &lt;/P&gt;&lt;P&gt;Could anyone please try to explain this behavior? &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Can I have HS2 and STS running on the same node?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Tagging experts:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/34090/spark-yarn-configuration-on-hdp-24-recommendations.html#"&gt;@vshukla&lt;/A&gt;, &lt;A href="https://community.hortonworks.com/questions/34090/spark-yarn-configuration-on-hdp-24-recommendations.html#"&gt;@Timothy Spann&lt;/A&gt;, &lt;A href="https://community.hortonworks.com/questions/34090/spark-yarn-configuration-on-hdp-24-recommendations.html#"&gt;@Jitendra Yadav&lt;/A&gt;, &lt;A href="https://community.hortonworks.com/questions/34090/spark-yarn-configuration-on-hdp-24-recommendations.html#"&gt;@Yuta Imai&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/104/sball.html" nodeid="104"&gt;@Simon Elliston Ball&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 18:58:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157905#M28930</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-05-19T18:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157906#M28931</link>
      <description>&lt;P&gt;you can but you need to change the port of one  of the service. &lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 18:59:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157906#M28931</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-05-19T18:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157907#M28932</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How are you starting the spark thrift server, what is the command you are using ?&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 19:11:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157907#M28932</guid>
      <dc:creator>krajguru</dc:creator>
      <dc:date>2016-05-19T19:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157908#M28933</link>
      <description>&lt;P&gt;Using Ambari,&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 19:28:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157908#M28933</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-05-19T19:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157909#M28934</link>
      <description>&lt;P&gt; Can you be precise, which property to be changed? I do not want to change for HS2. &lt;/P&gt;&lt;P&gt;What I think is : Internally STS uses HS2 and not sure if it inherits port configurations of HS2. &lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 19:29:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157909#M28934</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-05-19T19:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157910#M28935</link>
      <description>&lt;P&gt;Do you suggest to use command to start STS ? &lt;/P&gt;&lt;OL&gt;
&lt;/OL&gt;&lt;P&gt;&lt;CODE&gt;./sbin/start-thriftserver.sh --master yarn-client --executor-memory 512m --hiveconf hive.server2.thrift.port=100015&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 19:31:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157910#M28935</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-05-19T19:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157911#M28936</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I don't think we can run multiple instances of spark thrift from Ambari, Its better to run one instance from Ambari and another from command line.&lt;/P&gt;&lt;P&gt;cd $SPARK_HOME&lt;/P&gt;&lt;P&gt;./sbin/start-thriftserver.sh --master yarn-client --executor-memory 512m --hiveconf hive.server2.thrift.port=100015 &amp;amp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 19:34:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157911#M28936</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-19T19:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157912#M28937</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt;&lt;P&gt; Its only one instance for STS and one for HS2. &lt;/P&gt;&lt;P&gt;In the Ambari Configuration : hive.server2.thrift.port has been set to 100015 already. &lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 19:40:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157912#M28937</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-05-19T19:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157913#M28938</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt;&lt;P&gt;which HDP version you are using?  there was a bug related to same in HDP 2.3&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 19:59:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157913#M28938</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-19T19:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157914#M28939</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt;&lt;P&gt;HDP-2.4.0.0&lt;/P&gt;&lt;P&gt;(2.4.0.0-169)&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2016 20:23:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157914#M28939</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-05-19T20:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157915#M28940</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt; &lt;/P&gt;&lt;P&gt;If this is hdp 2.4 then I would suggest you to run HS2 on different port and let Spark run on 10001 as a workaround only. Meantime I will try to reproduce this issue on my HDP 2.4 cluster and open a bug for this if required. &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 May 2016 21:56:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157915#M28940</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-20T21:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157916#M28941</link>
      <description>&lt;P&gt;From what I understand, STS runs a version of HS2. The two processes 
need to use different ports. The default port used by Ambari for STS is 
10015 (we need to revise the example in the document). The default port used by Ambari for HS2 is 10000. (See &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_HDP_Reference_Guide/content/reference_chap2.html"&gt;Configuring Ports&lt;/A&gt; in the HDP Ref. Guide for a list of ports per component.&lt;/P&gt;&lt;P&gt;As a side note, you mentioned that you configured the STS port 
100015 but the first beeline command lists 10015. If that's a code mismatch (as opposed to a typo in the post), that would create a mismatch.&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_spark-guide/content/jdbc-access-sparksql.html"&gt;Accessing Spark SQL through JDBC&lt;/A&gt; in the Spark Guide has additional info about using the STS, and the Spark Guide has some Ambari-specific configuration information in an earlier chapter (&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_spark-guide/content/install-sts-after-spark-install.html"&gt;Installing STS after Deploying Spark&lt;/A&gt; and &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_spark-guide/content/config-sts-port.html"&gt;Customizing the STS Port&lt;/A&gt;; links are for HDP 2.4.0).&lt;/P&gt;</description>
      <pubDate>Sat, 21 May 2016 05:18:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157916#M28941</guid>
      <dc:creator>lgeorge</dc:creator>
      <dc:date>2016-05-21T05:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157917#M28942</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2528/jyadav.html" nodeid="2528"&gt;@Jitendra Yadav&lt;/A&gt;&lt;P&gt; Did you verify if its a bug? Or any work around.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 15:21:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157917#M28942</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-05-23T15:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157918#M28943</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/36/lgeorge.html" nodeid="36"&gt;@lgeorge&lt;/A&gt;&lt;P&gt;Thanks for the links. And looking through the typo.  Yes default ambari port for HS2 is 10000 and when it is Kerberized for http requests it listens on 10001.&lt;/P&gt;&lt;P&gt;I started the STS from the command line &lt;/P&gt;&lt;PRE&gt;./sbin/start-thriftserver.sh --master yarn-client --executor-memory 512m --hiveconf hive.server2.thrift.port=100015 &lt;/PRE&gt;&lt;P&gt;
I tried netstat  and I do not see any thing on port 100015 . 

However, I notice that in the Thrift logs it says : ThriftCLIService started on port 10001. 

In the log I see following : 
16/05/20 15:36:25 INFO AbstractConnector: Started SelectChannelConnector@0.0.0.0:10001 
16/05/20 15:36:25 INFO ThriftCLIService: Started ThriftHttpCLIService in http mode on port 10001 path=/cliservice/* with 5...500 worker threads &lt;/P&gt;&lt;P&gt;It says clearly that STS thrift is trying to start on port 10001. &lt;/P&gt;&lt;P&gt;I would be pleased if I can keep STS and HS2 on the same machine and different ports. I am confused here, because no where in the STS configuration I see 1001 !!!!&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 15:36:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157918#M28943</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-05-23T15:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157919#M28944</link>
      <description>&lt;P style="margin-left: 40px;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt; I'll see if I can find out more info.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 23:22:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157919#M28944</guid>
      <dc:creator>lgeorge</dc:creator>
      <dc:date>2016-05-23T23:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157920#M28945</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt; &lt;/P&gt;&lt;P&gt;I'm not able to reproduce this issue on my cluster, But as a workaround you can move the HS2 http port from 10001 to 10002 and let spark occupied the 10001 port.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 04:31:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157920#M28945</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-24T04:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157921#M28946</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Here is my env info.&lt;/P&gt;&lt;PRE&gt;sudo -u spark ./sbin/start-thriftserver.sh --master yarn-client --executor-memory 512m --hiveconf hive.server2.thrift.port=10015 
[root@ey spark-thriftserver]# lsof -i:10015
COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    29812 spark  193u  IPv6 246416      0t0  TCP *:10015 (LISTEN)
[root@ey spark-thriftserver]# lsof -i:10001
COMMAND   PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
java    22905 hive  482u  IPv4 139955      0t0  TCP *:scp-config (LISTEN)

&lt;/PRE&gt;&lt;P&gt;Just wanted to check if you have hive-site.xml or some other .xml file inside /usr/hdp/current/spark-thriftserver/conf direcotry which has hive.server2.thrift.port property configured?&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 05:41:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157921#M28946</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-24T05:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157922#M28947</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt;&lt;P&gt;STS is listening on 10015 even in secure cluster. Have you tried to start STS through ambari ?&lt;/P&gt;&lt;PRE&gt;16/05/24 02:03:32 INFO UserGroupInformation: Login successful for user hive/jzhang-test4-1.openstacklocal@EXAMPLE.COM using keytab file /etc/security/keytabs/hive.service.keytab
16/05/24 02:03:32 INFO CompositeService: Operation log root directory is created: /tmp/hive/operation_logs
16/05/24 02:03:32 INFO AbstractService: HiveServer2: Async execution pool size 100
16/05/24 02:03:32 INFO AbstractService: Service:OperationManager is inited.
16/05/24 02:03:32 INFO AbstractService: Service: SessionManager is inited.
16/05/24 02:03:32 INFO AbstractService: Service: CLIService is inited.
16/05/24 02:03:32 INFO AbstractService: Service:ThriftBinaryCLIService is inited.
16/05/24 02:03:32 INFO AbstractService: Service: HiveServer2 is inited.
16/05/24 02:03:32 INFO AbstractService: Service:OperationManager is started.
16/05/24 02:03:32 INFO AbstractService: Service:SessionManager is started.
16/05/24 02:03:32 INFO AbstractService: Service:CLIService is started.
16/05/24 02:03:32 INFO ObjectStore: ObjectStore, initialize called
16/05/24 02:03:32 INFO Query: Reading in results for query "org.datanucleus.store.rdbms.query.SQLQuery@0" since the connection used is closing
16/05/24 02:03:32 INFO MetaStoreDirectSql: Using direct SQL, underlying DB is DERBY
16/05/24 02:03:32 INFO ObjectStore: Initialized ObjectStore
16/05/24 02:03:32 INFO HiveMetaStore: 0: get_databases: default
16/05/24 02:03:32 INFO audit: ugi=hive/jzhang-test4-1.openstacklocal@EXAMPLE.COM        ip=unknown-ip-addr      cmd=get_databases: default
16/05/24 02:03:32 INFO HiveMetaStore: 0: Shutting down the object store...
16/05/24 02:03:32 INFO audit: ugi=hive/jzhang-test4-1.openstacklocal@EXAMPLE.COM        ip=unknown-ip-addr      cmd=Shutting down the object store...
16/05/24 02:03:32 INFO HiveMetaStore: 0: Metastore shutdown complete.
16/05/24 02:03:32 INFO audit: ugi=hive/jzhang-test4-1.openstacklocal@EXAMPLE.COM        ip=unknown-ip-addr      cmd=Metastore shutdown complete.
16/05/24 02:03:32 INFO AbstractService: Service:ThriftBinaryCLIService is started.
16/05/24 02:03:32 INFO AbstractService: Service:HiveServer2 is started.
16/05/24 02:03:32 INFO HiveThriftServer2: HiveThriftServer2 started
16/05/24 02:03:32 INFO UserGroupInformation: Login successful for user hive/jzhang-test4-1.openstacklocal@EXAMPLE.COM using keytab file /etc/security/keytabs/hive.service.keytab
16/05/24 02:03:32 INFO AbstractDelegationTokenSecretManager: Updating the current master key for generating delegation tokens
16/05/24 02:03:33 INFO TokenStoreDelegationTokenSecretManager: New master key with key id=0
16/05/24 02:03:33 INFO TokenStoreDelegationTokenSecretManager: Starting expired delegation token remover thread, tokenRemoverScanInterval=60 min(s)
16/05/24 02:03:33 INFO AbstractDelegationTokenSecretManager: Updating the current master key for generating delegation tokens
16/05/24 02:03:33 INFO TokenStoreDelegationTokenSecretManager: New master key with key id=1
16/05/24 02:03:33 INFO ThriftCLIService: Starting ThriftBinaryCLIService on port 10015 with 5...500 worker threads&lt;/PRE&gt;</description>
      <pubDate>Tue, 24 May 2016 09:26:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157922#M28947</guid>
      <dc:creator>jzhang</dc:creator>
      <dc:date>2016-05-24T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157923#M28948</link>
      <description>&lt;P style="margin-left: 20px;"&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3021/smartninja723.html" nodeid="3021"&gt;@Smart Solutions&lt;/A&gt; please see note from &lt;A rel="user" href="https://community.cloudera.com/users/453/jzhang.html" nodeid="453"&gt;@jzhang&lt;/A&gt;, below (thanks Jeff!)&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 10:42:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157923#M28948</guid>
      <dc:creator>lgeorge</dc:creator>
      <dc:date>2016-05-24T10:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can we not have HS2 and Spark Thrift Server (STS) running on the same node?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157924#M28949</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/453/jzhang.html" nodeid="453"&gt;@jzhang&lt;/A&gt;, Yes. I did try from Ambari also. The result is same.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2016 23:31:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-we-not-have-HS2-and-Spark-Thrift-Server-STS-running-on/m-p/157924#M28949</guid>
      <dc:creator>smartninja723</dc:creator>
      <dc:date>2016-05-24T23:31:28Z</dc:date>
    </item>
  </channel>
</rss>

