Skip to content
Permalink
Browse files
[fix] optimize the decompression script to adapt different doris pack…
…age name (#57)

 optimize the decompression script to adapt different doris package name
  • Loading branch information
liruixl committed Apr 28, 2022
1 parent c7cb2f0 commit 2e77a76ee7281f0d8cd10756bb80d6a902e38a03
Showing 2 changed files with 3 additions and 2 deletions.
@@ -41,8 +41,7 @@ download_func() {
wget --no-check-certificate $DOWNLOAD_URL -O $DESC_DIR/$FILENAME.tar.gz
cd $DESC_DIR
echo "start to decompress palo package"
tar -zxf "$FILENAME".tar.gz
mv PALO* $FILENAME
mkdir $FILENAME && tar -xzf "$FILENAME".tar.gz -C ./$FILENAME --strip-components 1
echo "file name : $FILENAME"
echo "start to copy fe be broker to dest dir"
cp -r $DESC_DIR/$FILENAME/fe $DESC_DIR/
@@ -25,6 +25,7 @@
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
import java.util.Optional;
@@ -37,6 +38,7 @@ public interface ResourceNodeRepository extends JpaRepository<ResourceNodeEntity
List<ResourceNodeEntity> getByResourceClusterId(@Param("resourceClusterId") long resourceClusterId);

@Modifying
@Transactional
@Query("delete from ResourceNodeEntity c where c.resourceClusterId = :resourceClusterId and c.host = :host")
@CacheEvict(value = "node_agent", allEntries = true)
void deleteByResourceClusterIdAndHost(@Param("resourceClusterId") long resourceClusterId,

0 comments on commit 2e77a76

Please sign in to comment.