设置细节:我在我当地的ubuntu(16.04)vm上设置openwhisk.在这个设置中,kafka在另一个docker中的一个docker和zookeeper中运行.
我使用cmd连接到kafka docker
sudo docker exec -it <container id> sh
Run Code Online (Sandbox Code Playgroud)
一旦连接,我执行以下命令来获取主题列表
bin/kafka-topics.sh --list --zookeeper localhost:2181
Run Code Online (Sandbox Code Playgroud)
这给了我一个例外
Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 7203; nested exception is:
java.net.BindException: Address already in use
Run Code Online (Sandbox Code Playgroud)
我无法理解为什么要尝试使用7203端口?
docker ps输出
83eba3961247 ches/kafka:0.10.0.1 "/start.sh"
11 days ago Up 23 hours 7203/tcp, 0.0.0.0:9092->9092/tcp
kafka
947fa689a7ef zookeeper:3.4 "/docker-
entrypoin..." 11 days ago Up 23 hours 2888/tcp,
0.0.0.0:2181->2181/tcp, 3888/tcp zookeeper
Run Code Online (Sandbox Code Playgroud) 我试图找出 kibana 中配置的 elasticsearch 的 url。但我无权访问后端配置。有没有办法使用 kibana 前端查看 kibana 中配置了哪个 elasticsearch url。
谢谢
您好,我是Hyperledger Fabric的新手。
我刚刚开始使用它,我正在从http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html中提取第一个示例
我从http://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html进行了必备安装
我的操作系统是ubuntu 16.04,我落后于代理
当我运行时node query.js,出现以下错误
Create a client and set the wallet location
Set wallet path, and associate user PeerAdmin with application
Check user is enrolled, and set a query URL in the network
Make query
Assigning transaction_id: a85d2111f5d6e5eef064f87de42be677e69849724b1242dca0503be84d397f5d
error: [client-utils.js]: sendPeersProposal - Promise is rejected: Error: Connect Failed
at /home/nokia/hyperledger/firstApp/fabric-samples/fabcar/node_modules/grpc/src/node/src/client.js:434:17
returned from query
Query result count = 1
error from query = { Error: Connect Failed
at /home/nokia/hyperledger/firstApp/fabric-samples/fabcar/node_modules/grpc/src/node/src/client.js:434:17 code: …Run Code Online (Sandbox Code Playgroud) 我有一个关于XML设计的非常基本的问题.我有用于生成UI的XML.它的格式如下:
<Input>
<Label>Enter Machine Name</Label>
<ToolTip> Please enter the correct machine name</ToolTip>
<Type>TextField</Type>
</Input>
Run Code Online (Sandbox Code Playgroud)
我的问题是,以上述格式编写XML是更好还是采用以下格式,以获得更好的处理时间结果.
<Input Label="Enter Machine Name"
ToolTip="Please enter machine name"
Type="TextField">
Run Code Online (Sandbox Code Playgroud)
哪种类型的XML将在较短的时间内解析?
我创建了两个部署(部署是由 kubenetes 操作员进行的,还有其他活动,例如服务创建、秘密创建等,尽管我觉得它们与此错误无关),并且预计pod 会出现,但 pod 没有作用过来。当我检查事件时,我发现两个 Pod 都出现以下错误(我列出了一个)
60m Warning FailedCreate replicaset/sast-edge-5577bdcf6c Error creating: pods "sas-edge-5577bdcf6c-94ps9" is forbidden: failed quota: app-xxxx-stable-biw9247u7z: must specify limits.memory
Run Code Online (Sandbox Code Playgroud)
当我描述 pod 时,我看到已经指定了限制
image: registry.xxx.xxxx.com/xxkl/xxx-xxxx:1.4
imagePullPolicy: IfNotPresent
name: nsc-core
ports:
- containerPort: 3000
protocol: TCP
resources:
limits:
memory: 500Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
Run Code Online (Sandbox Code Playgroud)
我还检查了 NS 的配额
Name: app-xxxx-stable-biw9247u7z
Namespace: app-xxxx-stable-biw9247u7z
Resource Used Hard
-------- ---- ----
limits.memory 4072Mi 8Gi
Run Code Online (Sandbox Code Playgroud)
我不确定为什么 kubernetes 没有指定资源限制。需要帮忙。
我正在按照以下链接在Hyperledger Fabric上设置我的第一个网络 http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html
无论在此设置中提到的步骤,我几乎都可以做到.问题是当我尝试使用下面的指令将其他对等体加入到通道时
您可以根据需要通过对四个环境变量进行适当更改来使其他对等方加入通道.
我导出以下变量
export CORE_PEER_MSPCONFIGPATH=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/users/Admin@org1.example.com/msp
export CORE_PEER_ADDRESS=peer1.org1.example.com:8051
export CORE_PEER_LOCALMSPID="Org1MSP"
export CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer1.org1.example.com/tls/ca.crt
Run Code Online (Sandbox Code Playgroud)
然后我跑了
peer channel join -b mychannel.block
Run Code Online (Sandbox Code Playgroud)
我得到以下错误
2017-08-02 06:38:12.375 UTC [msp] GetLocalMSP -> DEBU 001 Returning existing local MSP
2017-08-02 06:38:12.376 UTC [msp] GetDefaultSigningIdentity -> DEBU 002 Obtaining default signing identity
2017-08-02 06:38:12.379 UTC [grpc] Printf -> DEBU 003 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp 172.19.0.2:8051: getsockopt: connection refused"; Reconnecting to {peer1.org1.example.com:8051 <nil>}
2017-08-02 06:38:13.379 …Run Code Online (Sandbox Code Playgroud) hyperledger ×3
apache-kafka ×1
ca ×1
docker ×1
kibana-5 ×1
kubernetes ×1
limit ×1
openwhisk ×1
performance ×1
xml ×1