mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-12-06 05:49:24 +08:00
d18c17e786
Signed-off-by: neza2017 <yefu.chen@zilliz.com>
29 lines
618 B
Go
29 lines
618 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"flag"
|
|
"fmt"
|
|
"strconv"
|
|
|
|
"github.com/zilliztech/milvus-distributed/internal/conf"
|
|
"github.com/zilliztech/milvus-distributed/internal/reader"
|
|
)
|
|
|
|
func main() {
|
|
ctx, _ := context.WithCancel(context.Background())
|
|
|
|
var yamlFile string
|
|
flag.StringVar(&yamlFile, "yaml", "", "yaml file")
|
|
flag.Parse()
|
|
// flag.Usage()
|
|
fmt.Println("yaml file: ", yamlFile)
|
|
conf.LoadConfig(yamlFile)
|
|
|
|
pulsarAddr := "pulsar://"
|
|
pulsarAddr += conf.Config.Pulsar.Address
|
|
pulsarAddr += ":"
|
|
pulsarAddr += strconv.FormatInt(int64(conf.Config.Pulsar.Port), 10)
|
|
reader.StartQueryNode(ctx, pulsarAddr)
|
|
}
|