如何解决无法拉出 zeppelin-server 镜像
我在 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
事件:
解决方法
Zeppelin image published on Docker hub 与 Zeppelin 主页上的 config file 中引用的 Zeppelin 图像之间似乎存在不一致。
使用 this commit,配置文件中的图像已从 zeppelin
更改为 zeppelin-server
(以及其他一些更改已实施)。新镜像好像还没有推送到 Docker hub。
要使用 Zeppelin 主页上的配置文件运行 Zeppelin 部署,请尝试更改配置文件中的三行:
- 第 32 行:已发布图像的名称为
apache/zeppelin:0.9.0
。可以看到此名称 here。 - 第 33 行:
ZEPPELIN_HOME
应设置为/zeppelin
。这对应于图像 Docker file 中Z_HOME
的值。 - 第 177 行:此处也应更正图像名称并将其设置为
apache/zeppelin:0.9.0
另一种选择是恢复到旧版本的 config file。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。