--查询数据库是否开启CDC SELECT name,is_cdc_enabled FROM sys.databases --查询表是否开启CDC SELECT C.name, B.name, is_tracked_by_cdc FROM sys.tables AS A LEFTJOIN sys.objects AS B ON A.object_id = B.object_id LEFTJOIN sys.schemas AS C ON C.schema_id = B.schema_id;
`NotImplementedError:Cannot copy out of meta tensor; no data! Please use torch.nn.Module.to_empty() instead of torch.nn.Module.to() when moving module from meta to a different device.`
解决:强制设置 device = “mps”
1 2 3
# 检查CUDA是否可用,然后检查MPS是否可用,最后回退到CPU # device = torch.device("cuda" if torch.cuda.is_available() else "mps" if torch.backends.mps.is_available() else "cpu") device = "mps"
apiVersion: starrocks.com/v1 kind: StarRocksCluster metadata: name: starrockscluster namespace: starrocks spec: starRocksFeSpec: image: starrocks/fe-ubuntu:3.2.2 replicas: 1 limits: cpu: 2 memory: 4Gi requests: cpu: 2 memory: 4Gi # service: # type: NodePort # export fe service # ports: # - name: query # fill the name from the fe service ports # nodePort: 32755 # port: 9030 # containerPort: 9030 storageVolumes: - name: fe-storage-meta storageClassName: "nfs-client" # you can remove this line if you want to use the default storage class storageSize: 10Gi # the size of storage volume for metadata mountPath: /opt/starrocks/fe/meta # the path of metadata - name: fe-storage-log storageClassName: "nfs-client" # you can remove this line if you want to use the default storage class storageSize: 1Gi # the size of storage volume for log mountPath: /opt/starrocks/fe/log # the path of log configMapInfo: configMapName: starrockscluster-fe-cm resolveKey: fe.conf starRocksCnSpec: image: starrocks/cn-ubuntu:3.2.2 replicas: 1 limits: cpu: 2 memory: 4Gi requests: cpu: 2 memory: 4Gi configMapInfo: configMapName: starrockscluster-cn-cm resolveKey: cn.conf storageVolumes: - name: cn-storage-data storageClassName: "nfs-client" # you can remove this line if you want to use the default storage class storageSize: 10Gi # the size of storage volume for data mountPath: /opt/starrocks/cn/storage # the path of data - name: cn-storage-log storageClassName: "nfs-client" # you can remove this line if you want to use the default storage class storageSize: 1Gi # the size of storage volume for log mountPath: /opt/starrocks/cn/log # the path of log starRocksFeProxySpec: replicas: 1 limits: cpu: 1 memory: 2Gi requests: cpu: 1 memory: 2Gi service: type: NodePort # export fe proxy service ports: - name: http-port # fill the name from the fe proxy service ports containerPort: 8080 nodePort: 30180 # The range of valid ports is 30000-32767 port: 8080 resolver: "kube-dns.kube-system.svc.cluster.local" # this is the default dns server.