Closed clojurians-org closed 4 years ago
i plan to add datahub to nix package.
nix-env -iA linkedinDatahub cat mce.dat | datahub-mce-producer....
{ services.linkedin-datahub-gms = { enable = true ; package = pkgs.linkedDatahub ; kafkas = [ "PLAINTEXT://localhost:9092" ] ; neo4j = "" ; elasticsearch = "" ; postgresql = "" ; } ; services.linkedin-datahub-frontend = { enable = true ; package = pkgs.linkedDatahub ; gms ="localhost:..." ; } ; services.linkedin-datahub-pipeline = { enable = true ; package = pkgs.linkedDatahub ; kafka ="localhost:..." } ; }
the things i need is:
src = fetchurl { url = "mirror://apache/kafka/${kafkaVersion}/kafka_${version}.tgz"; inherit sha256; };
a related kafka package and service module examle is:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/apache-kafka/default.nix https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/apache-kafka.nix
usage:
environment.systemPackages = [ pkgs.apacheKafka pkgs.confluent-platform ] services.apache-kafka = { enable = true ; package = pkgs.apacheKafka ; logDirs = [ "/opt/nix-module/data/kafka" ] ; zookeeper = "localhost:2181" ; extraProperties = '' offsets.topic.replication.factor = 1 zookeeper.session.timeout.ms = 600000 '' ; } ; services.confluent-schema-registry = { enable = true ; package = pkgs.confluent-platform ; kafkas = [ "PLAINTEXT://localhost:9092" ] ; } ;
seperate server and client tools is better.
@clojurians-org do you plan to work on this further? If not we'll close this issue for now and maybe revisit it again in the future if needed.
i plan to add datahub to nix package.
the things i need is:
a related kafka package and service module examle is:
https://github.com/NixOS/nixpkgs/blob/master/pkgs/servers/apache-kafka/default.nix https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/services/misc/apache-kafka.nix
usage: