> On Feb. 26, 2017, 7:43 p.m., Sumit Mohanty wrote: > > ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py, > > line 168 > > <https://reviews.apache.org/r/57075/diff/1/?file=1648119#file1648119line168> > > > > This may not work - this host may not have the folders and even then > > copying hive-site.xml from spark's conf dir is error prone. > > > > What you need is the following: > > > > XmlConfig("hive-site.xml", > > conf_dir=..., > > configurations=params.config['configurations']['hive-site'], > > > > configuration_attributes=params.config['configuration_attributes']['hive-site'], > > owner=params.zeppelin_user, > > group=params.zeppelin_group, > > mode=0644) > > > > Should zeppelin be restarted when these configs change? In that case, > > can you add hive-site and hbase-site to config dependencies. > > > > How about HSI or Hive2Server2? Does zeppelin need to work with llap? > > Prabhjyot Singh wrote: > This block is required only for running Spark 1.x. > JDBC-hive interpreter works as is. > Also, we have tested this multiple times, and always found > "/etc/spark/conf/hive-site.xml" in the same machine. > > Sumit Mohanty wrote: > You should do what Spark scripts did to create hive-site (same for > hbase-site too). See code at - > https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/SPARK/1.2.1/package/scripts/setup_spark.py#L104-L110. > You should also add the check as Spark has - if hive is installed, e.g.
Thank you for pointing that link, that works like black magic. Made the suggested changes. - Prabhjyot ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/57075/#review166832 ----------------------------------------------------------- On Feb. 26, 2017, 8:57 p.m., Prabhjyot Singh wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/57075/ > ----------------------------------------------------------- > > (Updated Feb. 26, 2017, 8:57 p.m.) > > > Review request for Ambari, Attila Doroszlai, Alejandro Fernandez, DIPAYAN > BHOWMICK, Jayush Luniya, Prabhjyot Singh, Rohit Choudhary, and Sumit Mohanty. > > > Bugs: AMBARI-20200 > https://issues.apache.org/jira/browse/AMBARI-20200 > > > Repository: ambari > > > Description > ------- > > hive-site.xml, hbase-site.xml, etc. are not found in class path for > Zeppelin's interpreter. > > As a result of which JDBC:phoenix on kerberos mode doesn't work. > > > Diffs > ----- > > > ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/configuration/zeppelin-env.xml > 677158c > > ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/master.py > 8a1fad6 > > ambari-server/src/main/resources/common-services/ZEPPELIN/0.6.0.2.5/package/scripts/params.py > 16a2782 > > Diff: https://reviews.apache.org/r/57075/diff/ > > > Testing > ------- > > Manually on CentOS6 > > > Thanks, > > Prabhjyot Singh > >
