Created 06-25-2021 04:33 PM
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,
Created 06-26-2021 05:50 AM
@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
Created 06-28-2021 11:31 AM
@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,