質問編集履歴
3
表現の修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -72,7 +72,7 @@
|
|
72
72
|
|
73
73
|
permitted by applicable law.
|
74
74
|
|
75
|
-
Last login: Fri Oct 23 09:54:14 2020 from
|
75
|
+
Last login: Fri Oct 23 09:54:14 2020 from 000.000.00.00
|
76
76
|
|
77
77
|
```
|
78
78
|
|
2
コマンドの流れをより詳細に追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -42,22 +42,120 @@
|
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
###
|
45
|
+
###実行しているコマンド
|
46
|
+
|
47
|
+
(server1=ログインノード、server2=計算ノードとします)
|
48
|
+
|
49
|
+
下記のコマンドを順に実行しています。
|
46
50
|
|
47
51
|
|
48
52
|
|
49
|
-
```
|
53
|
+
```bash
|
50
54
|
|
51
|
-
ssh server1 -L 9900:localhost:9900
|
55
|
+
localPC:~$ ssh server1 -L 9900:localhost:9900
|
52
56
|
|
53
|
-
|
57
|
+
返答
|
54
58
|
|
55
|
-
pipenv shell
|
56
|
-
|
57
|
-
n
|
59
|
+
Linux xxx 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3 (2019-02-02) x86_64
|
58
|
-
|
59
|
-
ssh server1 -R 9900:localhost:9900 -N -f
|
60
60
|
|
61
61
|
|
62
62
|
|
63
|
+
The programs included with the Debian GNU/Linux system are free software;
|
64
|
+
|
65
|
+
the exact distribution terms for each program are described in the
|
66
|
+
|
67
|
+
individual files in /usr/share/doc/*/copyright.
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
|
72
|
+
|
73
|
+
permitted by applicable law.
|
74
|
+
|
75
|
+
Last login: Fri Oct 23 09:54:14 2020 from 101.111.30.49
|
76
|
+
|
63
77
|
```
|
78
|
+
|
79
|
+
```bash
|
80
|
+
|
81
|
+
server1:~$ qlogin -q gpu.q
|
82
|
+
|
83
|
+
返答
|
84
|
+
|
85
|
+
Your job 43383 ("QLOGIN") has been submitted
|
86
|
+
|
87
|
+
waiting for interactive job to be scheduled ...
|
88
|
+
|
89
|
+
Your interactive job 43383 has been successfully scheduled.
|
90
|
+
|
91
|
+
Establishing builtin session to host server2.aaa.com ...
|
92
|
+
|
93
|
+
```
|
94
|
+
|
95
|
+
```bash
|
96
|
+
|
97
|
+
server2:~$ cd projectA # (pipenvのプロジェクトフォルダに移動)
|
98
|
+
|
99
|
+
server2:~/projectA$ pipenv shell
|
100
|
+
|
101
|
+
返答
|
102
|
+
|
103
|
+
Launching subshell in virtual environment...
|
104
|
+
|
105
|
+
. /path/to/$HOME/.venv/porjectA-IwBB_zea/bin/activate
|
106
|
+
|
107
|
+
server2:~/projectA$ . /path/to/$HOME/.venv/projectA-IwBB_zea/bin/activate
|
108
|
+
|
109
|
+
```
|
110
|
+
|
111
|
+
```bash
|
112
|
+
|
113
|
+
(projectA)server2:~/projectA$ nohup jupyter notebook --no-browser --port 9900 > jupyter.log &
|
114
|
+
|
115
|
+
返答
|
116
|
+
|
117
|
+
[1] 17939
|
118
|
+
|
119
|
+
nohup: ignoring input and redirecting stderr to stdout
|
120
|
+
|
121
|
+
```
|
122
|
+
|
123
|
+
```bash
|
124
|
+
|
125
|
+
(projectA)server2:~/projectA$ ssh server1 -R 9900:localhost:9900 -N -f
|
126
|
+
|
127
|
+
返答
|
128
|
+
|
129
|
+
Enter passphrase for key '/path/to/$HOME/.ssh/server1':
|
130
|
+
|
131
|
+
#(パスを入力)
|
132
|
+
|
133
|
+
```
|
134
|
+
|
135
|
+
ブラウザでhttp://localhost:9900/にアクセス。
|
136
|
+
|
137
|
+
```python
|
138
|
+
|
139
|
+
import socket
|
140
|
+
|
141
|
+
host = socket.gethostname()
|
142
|
+
|
143
|
+
print(host)
|
144
|
+
|
145
|
+
返答
|
146
|
+
|
147
|
+
server2
|
148
|
+
|
149
|
+
```
|
150
|
+
|
151
|
+
となるためserver2からちゃんと実行されているように見える。
|
152
|
+
|
153
|
+
import tensorflowを実行しようとすると失敗する。
|
154
|
+
|
155
|
+
```error
|
156
|
+
|
157
|
+
Kernel Restarting
|
158
|
+
|
159
|
+
The kernel appears to have died. It will restart automatically
|
160
|
+
|
161
|
+
```
|
1
意図が読みやすいよう修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
### 前提・実現したいこと
|
2
|
+
|
3
|
+
多段階ポートフォワードした先のjupyter notebookでtensorflowをimportすると強制終了してしまうため、改善したい。
|
4
|
+
|
5
|
+
|
2
6
|
|
3
7
|
sshした先の計算コンピュータでpython、tensorflowの開発環境を作っています。
|
4
8
|
|