プロパティにコンボ、スライダーなどのテーマを提供するために ambari でテーマ フレームワークを使用する方法は? ライセンスの yes または no プロパティを使用してトグルを追加する必要があります。以下のリンクをたどっていますが、カスタマイズ サービスのテーマが表示されません。 http://search-hadoop.com/m/g7Bc62I7Ncfx9tB1&subj=Re+Using+theme+framework+on+my+own+stack
私が行った手順:
metainfo.xml に theme.json エントリを追加
theme.json を次のように作成しました。
{ "名前": "デフォルト",
"description": "HBASE サービスのデフォルトテーマ",
"構成": {
"layouts": [
{
"name": "default",
"tabs": [
{
"name": "settings",
"display-name": "Settings",
"layout": {
"tab-columns": "3",
"tab-rows": "3",
"sections": [
{
"name": "section-memory",
"display-name": "Server",
"row-index": "0",
"column-index": "0",
"row-span": "1",
"column-span": "2",
"section-columns": "2",
"section-rows": "1",
"subsections": [
{
"name": "subsection-col1",
"row-index": "0",
"column-index": "0",
"row-span": "1",
"column-span": "1"
},
{
"name": "subsection-col2",
"row-index": "0",
"column-index": "1",
"row-span": "1",
"column-span": "1"
}
]
}
]
}
}
]
}
],
"placement": {
"configuration-layout": "default",
"configs": [
{
"config": "genera/licence",
"subsection-name": "subsection-col1"
}
]
},
"widgets": [
{
"config": "genera/licence",
"widget": {
"type": "toggle"
}
}
]
} }
- 構成フォルダーにある general.xml には、次のエントリが追加されました。
しかし、まだ反映されていません。