Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to add quicklinks in ambari

avatar
Contributor

Hi experts,

I have deployed a new cluster and our dev and prod clusters currently have quicklinks for HDFS.

 

How do I add a quicklink to HDFS in ambari?

Which metainfo.xml file do I modify to add the quicklinks in HDFS?

Can someone give me the location of the metainfo.xml file?

 

Thanks,

2 REPLIES 2

avatar
Master Collaborator

@ryu You can update the quicklink.json file on the Ambari server host at the below path

/var/lib/ambari-server/resources/stacks/HDP/2.3/services/<SERVICE NAME>/quicklinks/quicklinks.json

 For more info on the update quickink.json file refer below doc

https://cwiki.apache.org/confluence/display/AMBARI/Quick+Links

avatar
Contributor

@Scharan Thanks for the response.

 

So I added this in the metainfo.xml

<metainfo>
<schemaVersion>2.0</schemaVersion>
<services>
<service>
...

<quickLinksConfigurations-dir>quicklinks</quickLinksConfigurations-dir>
<quickLinksConfigurations>
<quickLinksConfiguration>
<fileName>quicklinks.json</fileName>
<default>true</default>
</quickLinksConfiguration>
</quickLinksConfigurations>

</service>
</services>
</metainfo>

 

And this is the quicklinks.json file:

{
"name": "default",
"description": "default quick links configuration",
"configuration": {
"protocol":
{
"type":"https",
"checks":[
{
"property":"dfs.http.policy",
"desired":"HTTPS_ONLY",
"site":"hdfs-site"
}
]
},

"links": [
{
"name": "namenode_ui",
"label": "NameNode UI",
"url":"%@://%@:%@",
"requires_user_name": "false",
"port":{
"http_property": "dfs.namenode.http-address",
"http_default_port": "50070",
"https_property": "dfs.namenode.https-address",
"https_default_port": "50470",
"regex": "\\w*:(\\d+)",
"site": "hdfs-site"
}
},
{
"name": "namenode_logs",
"label": "NameNode Logs",
"url":"%@://%@:%@/logs",
"requires_user_name": "false",
"port":{
"http_property": "dfs.namenode.http-address",
"http_default_port": "50070",
"https_property": "dfs.namenode.https-address",
"https_default_port": "50470",
"regex": "\\w*:(\\d+)",
"site": "hdfs-site"
}
},
{
"name": "namenode_jmx",
"label": "NameNode JMX",
"url":"%@://%@:%@/jmx",
"requires_user_name": "false",
"port":{
"http_property": "dfs.namenode.http-address",
"http_default_port": "50070",
"https_property": "dfs.namenode.https-address",
"https_default_port": "50470",
"regex": "\\w*:(\\d+)",
"site": "hdfs-site"
}
},
{
"name": "Thread Stacks",
"label": "Thread Stacks",
"url":"%@://%@:%@/stacks",
"requires_user_name": "false",
"port":{
"http_property": "dfs.namenode.http-address",
"http_default_port": "50070",
"https_property": "dfs.namenode.https-address",
"https_default_port": "50470",
"regex": "\\w*:(\\d+)",
"site": "hdfs-site"
}
}
]
}
}

 

 

I have restarted ambari-server but however, still do not see the quicklinks in ambari UI.

 

Any help is much appreciated.

 

Thanks,