RE: Debugging Enhanced Config

2016-10-04 Thread Steve Varnau
Jaimin,



Thanks for that tip.  When I got back to debugging this and queried my
configs and theme via the API, I found that it was missing the placement
section.  Turns out I had made the “placement” keyword plural to match
widgets and layouts. So with incorrect keyword, the entire section of my
json file was ignored.



Thanks!



--Steve



*From:* Jaimin Jetly [mailto:jai...@hortonworks.com]
*Sent:* Friday, September 30, 2016 5:44 PM
*To:* steve.var...@esgyn.com; user@ambari.apache.org
*Subject:* Re: Debugging Enhanced Config



Hi Steve,



you will need to look into the themes API being exposed from stacks
endpoint to confirm that whatever theme.json looks is being exposed via API.



If API is returning information as expected then JS code that acts when
navigating to the service's enhanced config page needs to be debugged.

​

Is it possible for you to share your original MPack or any different
version of MPack where you are hitting this issue ?



-- Thanks

Jaimin
--

*From:* Steve Varnau 
*Sent:* Friday, September 30, 2016 12:34 PM
*To:* user@ambari.apache.org
*Subject:* Debugging Enhanced Config



Hi,



I am working on plugging an MPack into Ambari and that is working well. I
also want to use enhanced configuration.



The symptom I’m seeing is that the new “Settings” tab shows up for my
service, but it is greyed out and hovering shows the message “No properties
to display”.  No config filters are on, so I should be seeing something
there.



I’ve checked the ambari-server.log, but found nothing, so I don’t think
there is a syntax error or unmatched brace in the theme.json file.



I’m sure it is reading the theme file, since the tab shows up, and the
properties specified are not showing up on the Advanced tab.  I think the
configuration xml is in pretty good shape, since when I remove properties
from theme.json, they show up fine in the Advanced tab.



I’ve tried to make the theme as simple as possible, just trying to show a
single section/subsection with a single property with a simple text-field
widget, but no luck.



Is there some method I can use to debug my enhanced config set-up?



--Steve


Re: How to get Hive host,user and password into my custom service

2016-10-04 Thread Nate Cole
Satya,

You can get the config values of any other service or host information – those 
are sent, in full, for each command to the agent.  You can find commands in 
/var/lib/ambari-agent/data.

Thanks,
Nate

From: Satyanarayana Jampa 
Reply-To: "user@ambari.apache.org" 
Date: Tuesday, October 4, 2016 at 7:52 AM
To: "user@ambari.apache.org" 
Subject: How to get Hive host,user and password into my custom service

Hi,
 I have written a custom service in which I need the information of 
Hive_host, hive_user and hive_password.
 Instead of asking the end-user to enter these values during installation 
as config parameters for the custom service, is there a way that I can use some 
env parameters that use to hold these values.

Similarly, I need the env. Parameters for sqoop host etc.

Thanks,
Satya.



How to get Hive host,user and password into my custom service

2016-10-04 Thread Satyanarayana Jampa
Hi,
 I have written a custom service in which I need the information of 
Hive_host, hive_user and hive_password.
 Instead of asking the end-user to enter these values during installation 
as config parameters for the custom service, is there a way that I can use some 
env parameters that use to hold these values.

Similarly, I need the env. Parameters for sqoop host etc.

Thanks,
Satya.