Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/apache-kafka/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Glassfish 3 Glassfish v3聚类_Glassfish 3_Cluster Computing - Fatal编程技术网

Glassfish 3 Glassfish v3聚类

Glassfish 3 Glassfish v3聚类,glassfish-3,cluster-computing,Glassfish 3,Cluster Computing,我试图通过Glassfish集群教程(,)来配置集群,但在远程主机上的集群中创建实例时仍然遇到问题。 我认为如果我使用插入的命令给您输出会更好,它可能会解释更多: adam@adam-desktop:~/Pulpit/glassfish-3.1.1/bin$ ./asadmin Use "exit" to exit and "help" for online help. asadmin> setup-ssh adam-laptop Successfully connected to ad

我试图通过Glassfish集群教程(,)来配置集群,但在远程主机上的集群中创建实例时仍然遇到问题。 我认为如果我使用插入的命令给您输出会更好,它可能会解释更多:

adam@adam-desktop:~/Pulpit/glassfish-3.1.1/bin$ ./asadmin
Use "exit" to exit and "help" for online help.

asadmin> setup-ssh adam-laptop
Successfully connected to adam@adam-laptop using keyfile /home/adam/.ssh/id_rsa
SSH public key authentication is already configured for adam@adam-laptop
Command setup-ssh executed successfully.

asadmin> install-node --installdir /home/adam/Pulpit/glassfish3 adam-laptop
Created installation zip /home/adam/Pulpit/glassfish-3.1.1/bin/glassfish8196347853130742869.zip
Successfully connected to adam@adam-laptop using keyfile /home/adam/.ssh/id_rsa
Copying /home/adam/Pulpit/glassfish-3.1.1/bin/glassfish8196347853130742869.zip (82498155 bytes) to adam-laptop:/home/adam/Pulpit/glassfish3
Installing glassfish8196347853130742869.zip into adam-laptop:/home/adam/Pulpit/glassfish3
Removing adam-laptop:/home/adam/Pulpit/glassfish3/glassfish8196347853130742869.zip
Fixing file permissions of all files under adam-laptop:/home/adam/Pulpit/glassfish3/bin
Command install-node executed successfully.

asadmin> start-domain domain1
Waiting for domain1 to start ........................
Successfully started the domain : domain1
domain  Location: /home/adam/Pulpit/glassfish-3.1.1/glassfish/domains/domain1
Log File: /home/adam/Pulpit/glassfish-3.1.1/glassfish/domains/domain1/logs/server.log
Admin Port: 4848
Command start-domain executed successfully.

asadmin> enable-secure-admin
Command enable-secure-admin executed successfully.

asadmin> restart-domain domain1
Successfully restarted the domain
Command restart-domain executed successfully.

asadmin> create-cluster c1
Command create-cluster executed successfully.

asadmin> create-node-ssh --nodehost adam-laptop --installdir /home/adam/Pulpit/glassfish3 adam-laptop
Command create-node-ssh executed successfully.

asadmin> create-instance --node adam-laptop --cluster c1 i1
Successfully created instance i1 in the DAS configuration, but failed to create the instance files on node adam-laptop (adam-laptop).

Command failed on node adam-laptop (adam-laptop): Could not contact the DAS running at adam-desktop:4848. This could be because a firewall is blocking the connection back to the DAS or because the DAS host is known by a different name on the instance host adam-laptop. To change the hostname that the DAS uses to identify itself please update the DAS admin HTTP listener address.
Command _create-instance-filesystem failed.

To complete this operation run the following command locally on host adam-laptop from the GlassFish install location /home/adam/Pulpit/glassfish3:

asadmin  --host adam-desktop --port 4848 create-local-instance --node adam-laptop i1
asadmin> 

更新

我将主机文件内容和ping命令输出放在桌面和笔记本电脑之间的连接中:

  adam@adam-desktop:~$ cat /etc/hosts
  127.0.0.1 localhost
  127.0.1.1 adam-desktop
  192.168.1.101 adam-laptop

  # The following lines are desirable for IPv6 capable hosts
  ::1     ip6-localhost ip6-loopback
  fe00::0 ip6-localnet
  ff00::0 ip6-mcastprefix
  ff02::1 ip6-allnodes
  ff02::2 ip6-allrouters
  adam@adam-desktop:~$ cat /etc/hostname 
  adam-desktop
  adam@adam-desktop:~$ ping adam-laptop
  PING adam-laptop (192.168.1.101) 56(84) bytes of data.
  64 bytes from adam-laptop (192.168.1.101): icmp_req=1 ttl=64 time=0.786 ms
  64 bytes from adam-laptop (192.168.1.101): icmp_req=2 ttl=64 time=0.694 ms
  64 bytes from adam-laptop (192.168.1.101): icmp_req=3 ttl=64 time=0.687 ms

有什么帮助吗?

域启动后,您可以访问
http://localhost:4848
http://adam-desktop:4848
在您的浏览器中


如果没有,linux上的glassfish要求您正确设置
/etc/hosts
文件,这就是我的大多数问题的根源。同时设置适当的网络配置。在Redhat上是
/etc/sysconfig/network
,在Ubuntu上是
/etc/hostname

域启动后,您可以访问
http://localhost:4848
http://adam-desktop:4848
在您的浏览器中


如果没有,linux上的glassfish要求您正确设置
/etc/hosts
文件,这就是我的大多数问题的根源。同时设置适当的网络配置。在Redhat上是
/etc/sysconfig/network
,在Ubuntu上是
/etc/hostname
,似乎错误是由
/etc/hosts
文件中的条目引起的

127.0.0.1   localhost
127.0.1.1   adam-desktop
192.168.1.101   adam-laptop
更改为后:

127.0.0.1   localhost
127.0.0.1   adam-desktop
192.168.1.101   adam-laptop

它起作用了。我必须在两台机器上进行更改,这意味着在
adam desktop
adam laptop

上,错误似乎是由
/etc/hosts
文件中的条目引起的

127.0.0.1   localhost
127.0.1.1   adam-desktop
192.168.1.101   adam-laptop
更改为后:

127.0.0.1   localhost
127.0.0.1   adam-desktop
192.168.1.101   adam-laptop

它起作用了。我必须在两台机器上进行更改,这意味着在运行
restart domain domain 1
start domain domain domain 1
命令后,我可以在
adam desktop
adam laptop
上进行更改http://localhost:4848/
http://adam-desktop:4848
。看来主机文件看起来不错,所以这可能是另一个麻烦的原因。您现在可以检查更新的帖子内容。您可以通过telnet、lynx或其他方式连接到两台机器之间的4848端口吗?这肯定是网络连接问题。运行
重新启动域domain1
启动域domain1
命令后,我可以访问
http://localhost:4848
/
http://adam-desktop:4848
。看来主机文件看起来不错,所以这可能是另一个麻烦的原因。您现在可以检查更新的帖子内容。您可以通过telnet、lynx或其他方式连接到两台机器之间的4848端口吗?这肯定是一个网络连接问题。