2022-09-26 11:05:03 [AsyncTask] Task Started: [hadoopusdp1-sim]初始化 SPARK Dashboard 相关内容
TaskInfo:
[
hostname: hadoopusdp1-sim,
ipv4: 10.xxx.xxx.xxx,
ipv6: null,
name: InitDashboardTask,
desc: [hadoopusdp1-sim]初始化 SPARK Dashboard 相关内容,
exec: empty,
timeout: null,
args: [],
interactArgs: null,
state: RUNNING,
skippable: false
]
2022-09-26 11:05:03 [AsyncTask] Task Failed: [hadoopusdp1-sim]初始化 SPARK Dashboard 相关内容
TaskInfo:
[
hostname: hadoopusdp1-sim,
ipv4: 10.xxx.xxx.xxx,
ipv6: null,
name: InitDashboardTask,
desc: [hadoopusdp1-sim]初始化 SPARK Dashboard 相关内容,
exec: empty,
timeout: null,
args: [],
interactArgs: null,
state: FAILED,
skippable: false
]
null
2022-09-26 11:05:03 [AsyncTask] org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized: [{"message":"Invalid username or password"}] at org.springframework.web.client.HttpClientErrorException.create(HttpClientErrorException.java:105) at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:170) at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:112) at org.springframework.web.client.ResponseErrorHandler.handleError(ResponseErrorHandler.java:63) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:785) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:743) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:677) at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:586) at cn.ucloud.udp.utils.GrafanaHandler.get(GrafanaHandler.java:382) at cn.ucloud.udp.utils.GrafanaHandler.getOrgByName(GrafanaHandler.java:229) at cn.ucloud.udp.async.task.impl.service.grafana.InitDashboardTask.execute(InitDashboardTask.java:49) at cn.ucloud.udp.async.task.AbstractTask.run(AbstractTask.java:206) at cn.ucloud.udp.async.task.AbstractTask.call(AbstractTask.java:192) at cn.ucloud.udp.async.task.AbstractTask.call(AbstractTask.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)
看报错是访问 grafana 报错 用户名或密码错误
2022-09-26 11:05:03 [AsyncTask] org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized: [{"message":"Invalid username or password"}] ... at cn.ucloud.udp.utils.GrafanaHandler.get(GrafanaHandler.java:382) at cn.ucloud.udp.utils.GrafanaHandler.getOrgByName(GrafanaHandler.java:229) at cn.ucloud.udp.async.task.impl.service.grafana.InitDashboardTask.execute(InitDashboardTask.java:49) ...
解决方案:
修改 grafana admin 密码为 USDP 所需 admin 密码
1. 登录 grafana 所在主机,访问 grafana 数据库
sqlite3 /data/udp/2.0.0.0/grafana/grafana.db
2. 修改 admin 密码为 USDP 所需 admin 密码
update user set password = 'dd773f227c263ac03bb36f68f2c4f13c858c3c8ad4e41628802222348a0797ecfc51138443e36c1862fb2b0832ed6b11d225', salt = 'uODV6hj5Ke', rands = 'L67uHxlegy' where login = 'admin'; .exit
3. 重试部署任务
1
回答1
回答0
回答1
回答0
回答0
回答0
回答1
回答0
回答0
回答