Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: update computer namespace in example #292

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions content/cn/docs/quickstart/hugegraph-computer.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ cat <<EOF | kubectl apply --filename -
apiVersion: hugegraph.apache.org/v1
kind: HugeGraphComputerJob
metadata:
namespace: hugegraph-computer-system
namespace: hugegraph-computer-operator-system
name: &jobName pagerank-sample
spec:
jobId: *jobName
Expand All @@ -160,7 +160,7 @@ EOF
#### 2.2.6 显示作业

```bash
kubectl get hcjob/pagerank-sample -n hugegraph-computer-system
kubectl get hcjob/pagerank-sample -n hugegraph-computer-operator-system

NAME JOBID JOBSTATUS
pagerank-sample pagerank-sample RUNNING
Expand All @@ -170,22 +170,22 @@ pagerank-sample pagerank-sample RUNNING

```bash
# Show the master log
kubectl logs -l component=pagerank-sample-master -n hugegraph-computer-system
kubectl logs -l component=pagerank-sample-master -n hugegraph-computer-operator-system

# Show the worker log
kubectl logs -l component=pagerank-sample-worker -n hugegraph-computer-system
kubectl logs -l component=pagerank-sample-worker -n hugegraph-computer-operator-system

# Show diagnostic log of a job
# 注意: 诊断日志仅在作业失败时存在,并且只会保存一小时。
kubectl get event --field-selector reason=ComputerJobFailed --field-selector involvedObject.name=pagerank-sample -n hugegraph-computer-system
kubectl get event --field-selector reason=ComputerJobFailed --field-selector involvedObject.name=pagerank-sample -n hugegraph-computer-operator-system
```

#### 2.2.8 显示作业的成功事件

> NOTE: it will only be saved for one hour

```bash
kubectl get event --field-selector reason=ComputerJobSucceed --field-selector involvedObject.name=pagerank-sample -n hugegraph-computer-system
kubectl get event --field-selector reason=ComputerJobSucceed --field-selector involvedObject.name=pagerank-sample -n hugegraph-computer-operator-system
```

#### 2.2.9 查询算法结果
Expand Down
12 changes: 6 additions & 6 deletions content/en/docs/quickstart/hugegraph-computer.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ cat <<EOF | kubectl apply --filename -
apiVersion: hugegraph.apache.org/v1
kind: HugeGraphComputerJob
metadata:
namespace: hugegraph-computer-system
namespace: hugegraph-computer-operator-system
name: &jobName pagerank-sample
spec:
jobId: *jobName
Expand All @@ -160,7 +160,7 @@ EOF
#### 2.2.6 Show job

```bash
kubectl get hcjob/pagerank-sample -n hugegraph-computer-system
kubectl get hcjob/pagerank-sample -n hugegraph-computer-operator-system

NAME JOBID JOBSTATUS
pagerank-sample pagerank-sample RUNNING
Expand All @@ -170,22 +170,22 @@ pagerank-sample pagerank-sample RUNNING

```bash
# Show the master log
kubectl logs -l component=pagerank-sample-master -n hugegraph-computer-system
kubectl logs -l component=pagerank-sample-master -n hugegraph-computer-operator-system

# Show the worker log
kubectl logs -l component=pagerank-sample-worker -n hugegraph-computer-system
kubectl logs -l component=pagerank-sample-worker -n hugegraph-computer-operator-system

# Show diagnostic log of a job
# NOTE: diagnostic log exist only when the job fails, and it will only be saved for one hour.
kubectl get event --field-selector reason=ComputerJobFailed --field-selector involvedObject.name=pagerank-sample -n hugegraph-computer-system
kubectl get event --field-selector reason=ComputerJobFailed --field-selector involvedObject.name=pagerank-sample -n hugegraph-computer-operator-system
```

#### 2.2.8 Show success event of a job

> NOTE: it will only be saved for one hour

```bash
kubectl get event --field-selector reason=ComputerJobSucceed --field-selector involvedObject.name=pagerank-sample -n hugegraph-computer-system
kubectl get event --field-selector reason=ComputerJobSucceed --field-selector involvedObject.name=pagerank-sample -n hugegraph-computer-operator-system
```

#### 2.2.9 Query algorithm results
Expand Down