Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
nni
Commits
2906315c
Unverified
Commit
2906315c
authored
Dec 30, 2019
by
SparkSnail
Committed by
GitHub
Dec 30, 2019
Browse files
quick fix http error (#1896)
parent
8d8c9de4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/nni_manager/training_service/pai/paiK8S/paiK8STrainingService.ts
...ager/training_service/pai/paiK8S/paiK8STrainingService.ts
+1
-1
src/nni_manager/training_service/pai/paiYarn/paiYarnTrainingService.ts
...er/training_service/pai/paiYarn/paiYarnTrainingService.ts
+1
-1
No files found.
src/nni_manager/training_service/pai/paiK8S/paiK8STrainingService.ts
View file @
2906315c
...
...
@@ -62,13 +62,13 @@ class PAIK8STrainingService extends PAITrainingService {
case
TrialConfigMetadataKey
.
PAI_CLUSTER_CONFIG
:
this
.
paiJobRestServer
=
new
PAIJobRestServer
(
component
.
get
(
PAIK8STrainingService
));
this
.
paiClusterConfig
=
<
PAIClusterConfig
>
JSON
.
parse
(
value
);
this
.
paiClusterConfig
.
host
=
this
.
formatPAIHost
(
this
.
paiClusterConfig
.
host
);
if
(
this
.
paiClusterConfig
.
passWord
)
{
// Get PAI authentication token
await
this
.
updatePaiToken
();
}
else
if
(
this
.
paiClusterConfig
.
token
)
{
this
.
paiToken
=
this
.
paiClusterConfig
.
token
;
}
this
.
paiClusterConfig
.
host
=
this
.
formatPAIHost
(
this
.
paiClusterConfig
.
host
);
break
;
case
TrialConfigMetadataKey
.
TRIAL_CONFIG
:
...
...
src/nni_manager/training_service/pai/paiYarn/paiYarnTrainingService.ts
View file @
2906315c
...
...
@@ -99,6 +99,7 @@ class PAIYarnTrainingService extends PAITrainingService {
path
:
'
/webhdfs/api/v1
'
,
host
:
this
.
paiClusterConfig
.
host
});
this
.
paiClusterConfig
.
host
=
this
.
formatPAIHost
(
this
.
paiClusterConfig
.
host
);
if
(
this
.
paiClusterConfig
.
passWord
)
{
// Get PAI authentication token
await
this
.
updatePaiToken
();
...
...
@@ -107,7 +108,6 @@ class PAIYarnTrainingService extends PAITrainingService {
}
else
{
throw
new
Error
(
'
pai cluster config format error, please set password or token!
'
);
}
this
.
paiClusterConfig
.
host
=
this
.
formatPAIHost
(
this
.
paiClusterConfig
.
host
);
break
;
case
TrialConfigMetadataKey
.
TRIAL_CONFIG
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment