求仁得仁
Kubernetes-kubectl 报错 The connection to the server localhost:8080 was refused Kubernetes-kubectl 报错 The connection to the server localhost:8080 was refused
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> /etc/profile source /etc/profile
2023-06-14
Kubernetes-kubeadm init 报错 unknown service runtime.v1.RuntimeService Kubernetes-kubeadm init 报错 unknown service runtime.v1.RuntimeService
# 移除 /etc/containerd/config.toml mv /etc/containerd/config.toml /root/config.toml.bak systemctl restart containerd kube
2023-06-14
Docker-WIN下DockerDesktop无法开启Kubernetes Docker-WIN下DockerDesktop无法开启Kubernetes
开启代理等方式都无效,只能换源: "registry-mirrors": [ "https://docker.mirrors.ustc.edu.cn", "https://cr.console.aliyun.com/" ]
2023-06-02
SpringCloud-gateway报错:type=Service Unavailable, status=503 SpringCloud-gateway报错:type=Service Unavailable, status=503
后端没有报错,前端返回503,如果配置文件确定没有问题的话,应该是缺依赖的问题: <dependency> <groupId>org.springframework.cloud</groupId>
2023-06-01
Docker-Win下报错: bind: An attempt was made to access a socket in a way forbidden by its access permissions. Docker-Win下报错: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
如果没有端口占用:Restart-Service -Name winnat, 然后重试 如果是端口占用了,则更换端口或杀死端口占用的进程: # 查找端口占用的PID netstat -ano | findstr $port # 查看PI
2023-06-01
tensorflow-ValueError logits and labels must have the same shape, received ((None, 240, 1) vs (None,)). tensorflow-ValueError logits and labels must have the same shape, received ((None, 240, 1) vs (None,)).
如果输入的 shape 都没问题,那应该是没加 Flatten 的原因 model = tf.keras.models.Sequential([ # input_shape 保持和数据集一致 tf.keras.layers.
2023-05-16
jhipster-error './lib/util/namespace' is not defined by exports in 'xxxx/package.json' jhipster-error './lib/util/namespace' is not defined by exports in 'xxxx/package.json'
package.json 中的 exports 中添加 "./lib/util/namespace": "./lib/util/namespace.js" "exports": { ".": "./lib/environment.js"
2023-05-15
vue3-打包静态页面后显示空白页且页面没有挂载任何元素 vue3-打包静态页面后显示空白页且页面没有挂载任何元素
将 vue 文件中 <script setup> 里的 setup 删除,只保留 <script>
2023-05-08
Docker-容器启动时提示内存太小 Docker-容器启动时提示内存太小
比如提示: Maximum number of memory map areas per process (vm.max_map_count) 262144 is too low, recommended value: 1048575, y
2023-04-27
HBase-stop-hbase.sh: no hbase master found HBase-stop-hbase.sh: no hbase master found
hbase-env.sh 中添加: export HBASE_PID_DIR=/var/hbase/pids jps 查看 hbase 相关的 pid, 然后 kill -9 结束进程 start-hbase.sh 启动 hbase
2023-04-23
HBase-ServerNotRunningYetException: Server is not running yet HBase-ServerNotRunningYetException: Server is not running yet
hbase-site.xml 中添加: <property> <name>hbase.wal.provider</name> <value>filesystem</value&g
2023-04-23
Hive-PSQLException: 不支援 10 验证类型 Hive-PSQLException: 不支援 10 验证类型
报错:PSQLException: 不支援 10 验证类型。请核对您已经组态 pg_hba.conf 文件包含客户端的IP位址或网路区段,以及驱动程序所支援的验证架构模式已被支援 原因:驱动不兼容(需要更新驱动版本) 去官网或者使用Mav
2023-04-22
Hive-WstxParsingException: Illegal character entity: expansion character Hive-WstxParsingException: Illegal character entity: expansion character
hive-site.xml 文件第 3215 行左右有一个特殊字符 (&#8;),删掉它: 214 <description> 3215 Ensures commands with OVERWRIT
2023-04-22
Hadoop-ClassNotFoundException Hadoop-ClassNotFoundException
输入命令 hadoop classpath, 将结果复制下来 mapred-site.xml 中加入: <property> <name>mapreduce.application.classpath<
2023-04-19
Hadoop-启动时没有启动datanode Hadoop-启动时没有启动datanode
原因: 在第一次格式化dfs后,启动并使用了hadoop,后来又重新执行了格式化命令 hdfs namenode -format,这时namenode的clusterID会重新生成,而datanode的clusterID 保持不变。 解决方
2023-04-19
tensorflow-...\tensorflow-plugins\tfdml_plugin.dll not found tensorflow-...\tensorflow-plugins\tfdml_plugin.dll not found
2.12.0 之后不支持直接调用 GPU, 需要安装插件 pip install tensorflow-directml-plugin 安装过程中如果中途报 ERROR 也没关系, 最后一行显示 successfully 就行了
2023-04-16