Skip to content

Commit

Permalink
Configure yqla mrjob syslibs
Browse files Browse the repository at this point in the history
  • Loading branch information
Marina Pereskokova committed Dec 28, 2024
1 parent 04391f7 commit a12074b
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions pkg/ytconfig/yql_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ type ClusterMapping struct {
Default bool `yson:"default"`
}

type MrJobSystemLibsWithMd5 struct {
File string `yson:"file"`
}

type GatewayConfig struct {
MRJobBinary string `yson:"mr_job_bin"`
UDFDirectory string `yson:"mr_job_udfs_dir"`
ClusterMapping []ClusterMapping `yson:"cluster_mapping"`
MRJobBinary string `yson:"mr_job_bin"`
UDFDirectory string `yson:"mr_job_udfs_dir"`
ClusterMapping []ClusterMapping `yson:"cluster_mapping"`
MrJobSystemLibsWithMd5 []MrJobSystemLibsWithMd5 `yson:"mr_job_system_libs_with_md5"`
}

type YQLAgent struct {
Expand Down Expand Up @@ -50,6 +55,14 @@ func getYQLAgentServerCarcass(spec *ytv1.YQLAgentSpec) (YQLAgentServer, error) {
c.User = "yql_agent"

c.YQLAgent.GatewayConfig.UDFDirectory = "/usr/lib/yql"
c.YQLAgent.GatewayConfig.MrJobSystemLibsWithMd5 = []MrJobSystemLibsWithMd5{
MrJobSystemLibsWithMd5{
File: "/usr/lib/yql/libiconv.so",
},
MrJobSystemLibsWithMd5{
File: "/usr/lib/yql/liblibidn-dynamic.so",
},
}
c.YQLAgent.GatewayConfig.MRJobBinary = "/usr/bin/mrjob"
c.YQLAgent.YqlPluginSharedLibrary = "/usr/lib/yql/libyqlplugin.so"

Expand Down

0 comments on commit a12074b

Please sign in to comment.