丁云鹏 5 miesięcy temu
rodzic
commit
14bc037686

+ 27 - 11
recommend-server-service/pom.xml

@@ -283,17 +283,17 @@
             <artifactId>recommend-similarity</artifactId>
             <version>1.0.0</version>
         </dependency>
-        <dependency>
-            <groupId>io.paddle.serving.client</groupId>
-            <artifactId>paddle-serving-sdk-java</artifactId>
-            <version>0.0.1</version>
-            <exclusions>
-                <exclusion>
-                    <groupId>io.grpc</groupId>
-                    <artifactId>grpc-core</artifactId>
-                </exclusion>
-            </exclusions>
-        </dependency>
+<!--        <dependency>-->
+<!--            <groupId>io.paddle.serving.client</groupId>-->
+<!--            <artifactId>paddle-serving-sdk-java</artifactId>-->
+<!--            <version>0.0.1</version>-->
+<!--            <exclusions>-->
+<!--                <exclusion>-->
+<!--                    <groupId>io.grpc</groupId>-->
+<!--                    <artifactId>grpc-core</artifactId>-->
+<!--                </exclusion>-->
+<!--            </exclusions>-->
+<!--        </dependency>-->
         <dependency>
             <groupId>io.milvus</groupId>
             <artifactId>milvus-sdk-java</artifactId>
@@ -303,6 +303,22 @@
                     <artifactId>commons-pool2</artifactId>
                     <groupId>org.apache.commons</groupId>
                 </exclusion>
+                <exclusion>
+                    <artifactId>grpc-netty-shaded</artifactId>
+                    <groupId>io.grpc</groupId>
+                </exclusion>
+                <exclusion>
+                    <artifactId>grpc-protobuf</artifactId>
+                    <groupId>io.grpc</groupId>
+                </exclusion>
+                <exclusion>
+                    <artifactId>grpc-stub</artifactId>
+                    <groupId>io.grpc</groupId>
+                </exclusion>
+                <exclusion>
+                    <artifactId>grpc-core</artifactId>
+                    <groupId>io.grpc</groupId>
+                </exclusion>
             </exclusions>
         </dependency>
     </dependencies>

+ 1 - 4
recommend-server-service/src/main/java/com/tzld/piaoquan/recommend/server/remote/ZillizRemoteService.java

@@ -38,10 +38,7 @@ public class ZillizRemoteService {
         try {
             // milvus 使用 io.grpc.internal.DnsNameResolverProvider
             ConnectParam connectConfig = ConnectParam.newBuilder()
-                    .withHost("in01-6540fb97902829b.ali-cn-hangzhou.vectordb.zilliz.com.cn")
-                    .withPort(19530)
-                    .withSecure(true)
-                    //.withUri(zillizUri)
+                    .withUri(zillizUri)
                     .withToken(zillizToken)
                     .build();
             PoolConfig poolConfig = PoolConfig.builder()