我在 Mac 上使用 Docker 和 K8,并尝试在 K8 上安装 Zeppelin 以尝试 Spark 作业。
我正在关注 https://zeppelin.apache.org/docs/0.9.0-SNAPSHOT/quickstart/kubernetes.html 并在第一步中被卡住
在执行 <table id="table">
<tr>
<th id="item">Item</th>
<th>Ounces (Oz)</th>
<th>Grams (g)</th>
<th>Fluid Ounces (FOz)</th>
<th>Milliliters (mL)</th>
<th>Drops</th>
<th>Completed</th>
</tr>
</table>
<p>Click button to test funtionality.</p>
<button onclick="AddRow()">Click Me</button>
<script>
function AddRow() {
// Get ID for table from HTML file
var table = document.getElementById("table");
// Count number of columns in table
var columnNumber = document.getElementById("table").rows[0].cells.length;
// Add row to last row in table
var row = document.getElementById("table").insertRow(-1);
// Add columns to new row matching header
// Loop should start at 0 and continue as long as you are less than
// the array length
for (i = 0; i < columnNumber; i++) {
// Create Input field in table
var newInput = document.createElement("INPUT");
// newInput.setAttribute("type", "text"); <-- Not needed: type="text" is the default
// newInput.setAttribute("placeholder", "Raw Good Name"); <-- See following line for simpler syntax
newInput.placeholder = "Raw Good Name";
newInput.classList.add("TableInput");
// If we're not on the first of last column
if(i !== 0 && i < columnNumber - 1){
newInput.type = "number"; // Make the input a number
}
row.insertCell(0).appendChild(newInput);
}
}
</script>
时,我得到:
kubectl apply -f zeppelin-server.yaml
事件:
我没有修改文件中的任何内容。
答案 0 :(得分:2)
Zeppelin image published on Docker hub 与 Zeppelin 主页上的 config file 中引用的 Zeppelin 图像之间似乎存在不一致。
使用 this commit,配置文件中的图像已从 zeppelin
更改为 zeppelin-server
(以及其他一些更改已实施)。新镜像好像还没有推送到 Docker hub。
要使用 Zeppelin 主页上的配置文件运行 Zeppelin 部署,请尝试更改配置文件中的三行:
apache/zeppelin:0.9.0
。可以看到此名称 here。ZEPPELIN_HOME
应设置为 /zeppelin
。这对应于图像 Docker file 中 Z_HOME
的值。apache/zeppelin:0.9.0
另一种选择是恢复到旧版本的 config file。