Git Product home page Git Product logo

Comments (4)

takirala avatar takirala commented on September 22, 2024

Thanks for the ticket @habibrosyad
This was fixed recently via dcos/cosmos#780
Please use a json file instead of a zip file as zip based files were deprecated/removed in recent versions. Let us know if you need help converting the zip to a json file.
@bamarni do you know if we have a mechanism in place to update the portworx docs ?

from dcos-cli.

bamarni avatar bamarni commented on September 22, 2024

@takirala : at the bottom of the page there is a link to edit the page, which redirects to the github repo where one can make a PR.

from dcos-cli.

habibrosyad avatar habibrosyad commented on September 22, 2024

@takirala it's good to know that it has been fixed. However, I might need help for how to convert the zip to json file, because as far as I know a repo consist of several json files. Do you have/know any documentation written somewhere covering this topic?

from dcos-cli.

takirala avatar takirala commented on September 22, 2024

The json schema for the repo is at https://github.com/mesosphere/universe/tree/version-3.x/repo/meta/schema which you can refer to build a json file.

I have created .json file for the zip file you linked above :

{
  "packages": [
    {
      "packagingVersion": "3.0",
      "name": "hadoop-px",
      "version": "px-universe",
      "maintainer": "[email protected]",
      "description": "Apache Hadoop",
      "selected": true,
      "framework": true,
      "releaseVersion": 0,
      "tags": [
        "hdfs",
        "hadoop"
      ],
      "postInstallNotes": "DC/OS Apache HDFS Service is being installed.\n\n\tDocumentation: https://docs.mesosphere.com/current/usage/service-guides/hdfs/\n\tIssues: https://jira.dcos.io/projects/DCOS_HDFS",
      "postUninstallNotes": "DC/OS Apache HDFS Service has been uninstalled.\nPlease follow the instructions at http://docs.mesosphere.com/current/usage/service-guides/hdfs/#uninstall to remove any persistent state if required.",
      "preInstallNotes": "This DC/OS Service is currently in preview. There may be bugs, missing features, or missing documentation. Test HDFS thoroughly before putting it into production. \n HDFS requires a minimum of five nodes, each with at least 2 CPU shares and 8GB of RAM available to the HDFS service.",
      "config": {
        "type": "object",
        "properties": {
          "service": {
            "type": "object",
            "description": "DC/OS service configuration properties",
            "properties": {
              "name": {
                "description": "The name of the service instance",
                "type": "string",
                "default": "hadoop-px"
              },
              "user": {
                "type": "string",
                "description": "The linux user used to run the scheduler and all executors.",
                "default": "root"
              },
              "principal": {
                "description": "The principal for the HDFS service instance.",
                "type": "string",
                "default": "hadoop-principal"
              },
              "secret_name": {
                "description": "Name of the Secret Store credentials to use for DC/OS service authentication. This should be left empty unless service authentication is needed.",
                "type": "string",
                "default": ""
              },
              "deploy_strategy": {
                "description": "HDFS deployment strategy. [parallel, serial]",
                "type": "string",
                "default": "parallel"
              },
              "tls": {
                "type": "object",
                "description": "TLS configuration properties.",
                "properties": {
                  "enabled": {
                    "description": "Enable TLS support (requires Strict mode).",
                    "type": "boolean",
                    "default": false
                  }
                }
              },
              "kerberos": {
                "type": "object",
                "description": "Kerberos configuration properties.",
                "properties": {
                  "enabled": {
                    "description": "Enable kerberos authentication.",
                    "type": "boolean",
                    "default": false
                  },
                  "keytabs_uri": {
                    "type": "string",
                    "description": "The URI from which Keytabs tar.gz can be downloaded. Only relevant when secure_mode is enabled.",
                    "default": ""
                  },
                  "krb5_conf_uri": {
                    "type": "string",
                    "description": "The URI of the krb5.conf file.  This file will be downloaded and used by each HDFS task."
                  },
                  "primary": {
                    "type": "string",
                    "description": "The Kerberos primary used by HDFS tasks.  The full principal will be <service.kerberos.primary>/<mesos_dns_address>@<service.kerberos.realm>",
                    "default": "hdfs"
                  },
                  "primary_http": {
                    "type": "string",
                    "description": "The Kerberos primary used by the HTTP server running on HDFS tasks.  See <service.kerberos.primary>.",
                    "default": "HTTP"
                  },
                  "realm": {
                    "type": "string",
                    "description": "The Kerberos realm used to render the principal of HDFS tasks.",
                    "default": "LOCAL"
                  }
                }
              }
            }
          },
          "journal_node": {
            "description": "HDFS configuration properties.",
            "type": "object",
            "properties": {
              "cpus": {
                "description": "Journal node CPU requirement",
                "type": "number",
                "default": 0.3
              },
              "mem": {
                "description": "Journal node memory requirement",
                "type": "number",
                "default": 2048
              },
              "disk": {
                "description": "Journal node disk size requirement in MB",
                "type": "number",
                "default": 5000
              },
              "portworx_volume_name": {
                "description": "Portworx volume name",
                "type": "string",
                "default": "HDFSJournalVolume"
              },
              "portworx_volume_options": {
                "description": "Portworx volume options. Comma separated key=value pairs",
                "type": "string",
                "default": ""
              }
            },
            "required": [
              "cpus",
              "mem",
              "disk",
              "portworx_volume_name"
            ]
          },
          "name_node": {
            "description": "HDFS configuration properties.",
            "type": "object",
            "properties": {
              "cpus": {
                "description": "Name node CPU requirement",
                "type": "number",
                "default": 0.3
              },
              "mem": {
                "description": "Name node memory requirement",
                "type": "number",
                "default": 2048
              },
              "disk": {
                "description": "Name node disk size requirement in MB",
                "type": "number",
                "default": 5000
              },
              "portworx_volume_name": {
                "description": "Portworx volume name",
                "type": "string",
                "default": "HDFSNameVolume"
              },
              "portworx_volume_options": {
                "description": "Portworx volume options. Comma separated key=value pairs",
                "type": "string",
                "default": ""
              }
            },
            "required": [
              "cpus",
              "mem",
              "disk",
              "portworx_volume_name"
            ]
          },
          "zkfc_node": {
            "description": "HDFS configuration properties.",
            "type": "object",
            "properties": {
              "cpus": {
                "description": "ZKFC node CPU requirement",
                "type": "number",
                "default": 0.3
              },
              "mem": {
                "description": "ZKFC node memory requirement",
                "type": "number",
                "default": 2048
              }
            },
            "required": [
              "cpus",
              "mem"
            ]
          },
          "data_node": {
            "description": "HDFS configuration properties.",
            "type": "object",
            "properties": {
              "count": {
                "description": "Data node count requirement",
                "type": "number",
                "default": 3
              },
              "cpus": {
                "description": "Data node CPU requirement",
                "type": "number",
                "default": 0.3
              },
              "mem": {
                "description": "Data node memory requirement",
                "type": "number",
                "default": 2048
              },
              "disk": {
                "description": "Data node disk size requirement in MB",
                "type": "number",
                "default": 5000
              },
              "portworx_volume_name": {
                "description": "Portworx volume name",
                "type": "string",
                "default": "HDFSDataVolume"
              },
              "portworx_volume_options": {
                "description": "Portworx volume options. Comma separated key=value pairs",
                "type": "string",
                "default": ""
              }
            },
            "required": [
              "cpus",
              "mem",
              "disk",
              "portworx_volume_name"
            ]
          },
          "yarn_node": {
            "description": "Yarn configuration properties.",
            "type": "object",
            "properties": {
              "cpus": {
                "description": "Yarn node CPU requirement",
                "type": "number",
                "default": 2
              },
              "mem": {
                "description": "Yarn node memory requirement",
                "type": "number",
                "default": 2048
              },
              "scheduler_min_allocation_mb": {
                "description": "Minimum limit of memory to allocate to each container request at the Resource Manager.",
                "type": "number",
                "default": 128
              },
              "scheduler_max_allocation_mb": {
                "description": "Maximum limit of memory to allocate to each container request at the Resource Manager.",
                "type": "number",
                "default": 2048
              },
              "scheduler_min_allocation_vcores": {
                "description": "The minimum allocation for every container request at the RM, in terms of virtual CPU cores.",
                "type": "number",
                "default": 1
              },
              "scheduler_max_allocation_vcores": {
                "description": "The maximum allocation for every container request at the RM, in terms of virtual CPU cores",
                "type": "number",
                "default": 2
              },
              "nodemanager_memory_mb": {
                "description": "Physical memory, in MB, to be made available to running containers.",
                "type": "number",
                "default": 4096
              },
              "nodemanager_cpu_vcores": {
                "description": "Number of CPU cores that can be allocated for containers.",
                "type": "number",
                "default": 4
              }
            },
            "required": [
              "cpus",
              "mem",
              "scheduler_min_allocation_mb",
              "scheduler_max_allocation_mb",
              "scheduler_min_allocation_vcores",
              "scheduler_max_allocation_vcores",
              "nodemanager_memory_mb",
              "nodemanager_cpu_vcores"
            ]
          },
          "hdfs": {
            "type": "object",
            "description": "HDFS File System configuration options",
            "properties": {
              "administrators": {
                "type": "string",
                "description": "Administrators for the HDFS cluster",
                "default": "core,centos,azureuser"
              },
              "name_node_rpc_port": {
                "type": "integer",
                "description": "The RPC port for HDFS Name Nodes.",
                "default": 10001
              },
              "name_node_http_port": {
                "type": "integer",
                "description": "The HTTP port for HDFS Name Nodes. ",
                "default": 10002
              },
              "zkfc_port": {
                "type": "integer",
                "description": "The port for ZKFC Nodes. ",
                "default": 8019
              },
              "journal_node_rpc_port": {
                "type": "integer",
                "description": "The RPC port used by Journal Nodes.",
                "default": 8485
              },
              "journal_node_http_port": {
                "type": "integer",
                "description": "The HTTP port used by Journal Nodes.",
                "default": 8480
              },
              "data_node_rpc_port": {
                "type": "integer",
                "description": "The RPC port used by Data Nodes.",
                "default": 10003
              },
              "data_node_http_port": {
                "type": "integer",
                "description": "The HTTP port used by Data Nodes.",
                "default": 10004
              },
              "data_node_ipc_port": {
                "type": "integer",
                "description": "The IPS port used by Data Nodes.",
                "default": 10005
              },
              "permissions_enabled": {
                "type": "boolean",
                "description": "If true, permissions checking is enabled",
                "default": false
              },
              "name_node_heartbeat_recheck_interval": {
                "type": "integer",
                "description": "This time decides the interval to check for expired datanodes.",
                "default": 60000
              },
              "compress_image": {
                "type": "boolean",
                "description": "If true, the File System image will be compressed.",
                "default": true
              },
              "image_compression_codec": {
                "type": "string",
                "description": "The image compression codec for the File System image.",
                "default": "org.apache.hadoop.io.compress.SnappyCodec"
              },
              "hadoop_root_logger": {
                "type": "string",
                "description": "",
                "default": "INFO,console"
              }
            },
            "required": [
              "name_node_rpc_port",
              "name_node_http_port",
              "journal_node_rpc_port",
              "journal_node_http_port",
              "data_node_rpc_port",
              "data_node_http_port",
              "data_node_ipc_port",
              "permissions_enabled",
              "name_node_heartbeat_recheck_interval",
              "compress_image",
              "image_compression_codec"
            ]
          }
        }
      },
      "marathon": {
        "v2AppMustacheTemplate": "ewogICJpZCI6ICJ7e3NlcnZpY2UubmFtZX19IiwKICAiY3B1cyI6IDEuMCwKICAibWVtIjogMTAyNCwKICAiaW5zdGFuY2VzIjogMSwKICAiY21kIjogImV4cG9ydCBMRF9MSUJSQVJZX1BBVEg9JE1FU09TX1NBTkRCT1gvbGlibWVzb3MtYnVuZGxlL2xpYjokTERfTElCUkFSWV9QQVRIOyBleHBvcnQgTUVTT1NfTkFUSVZFX0pBVkFfTElCUkFSWT0kKGxzICRNRVNPU19TQU5EQk9YL2xpYm1lc29zLWJ1bmRsZS9saWIvbGlibWVzb3MtKi5zbyk7IGV4cG9ydCBKQVZBX0hPTUU9JChscyAtZCAkTUVTT1NfU0FOREJPWC9qcmUqLyk7IGV4cG9ydCBKQVZBX0hPTUU9JHtKQVZBX0hPTUUlL307IGV4cG9ydCBQQVRIPSQobHMgLWQgJEp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CI6ICJIVFRQIiwKICAgICAgInBhdGgiOiAiL3YxL3BsYW5zL2RlcGxveSIsCiAgICAgICJncmFjZVBlcmlvZFNlY29uZHMiOiA5MDAsCiAgICAgICJpbnRlcnZhbFNlY29uZHMiOiAzMCwKICAgICAgInBvcnRJbmRleCI6IDAsCiAgICAgICJ0aW1lb3V0U2Vjb25kcyI6IDMwLAogICAgICAibWF4Q29uc2VjdXRpdmVGYWlsdXJlcyI6IDAKICAgIH0sCiAgICB7CiAgICAgICJwcm90b2NvbCI6ICJIVFRQIiwKICAgICAgInBhdGgiOiAiL3YxL3BsYW5zL3JlY292ZXJ5IiwKICAgICAgImdyYWNlUGVyaW9kU2Vjb25kcyI6IDkwMCwKICAgICAgImludGVydmFsU2Vjb25kcyI6IDMwLAogICAgICAicG9ydEluZGV4IjogMCwKICAgICAgInRpbWVvdXRTZWNvbmRzIjogMzAsCiAgICAgICJtYXhDb25zZWN1dGl2ZUZhaWx1cmVzIjogMAogICAgfQogIF0sCiAgInBvcnREZWZpbml0aW9ucyI6IFsKICAgIHsKICAgICAgInBvcnQiOiAwLAogICAgICAicHJvdG9jb2wiOiAidGNwIiwKICAgICAgIm5hbWUiOiAiYXBpIiwKICAgICAgImxhYmVscyI6IHsgIlZJUF8wIjogIi9hcGkue3tzZXJ2aWNlLm5hbWV9fTo4MCIgfQogICAgfQogIF0KfQo="
      },
      "command": {
        "pip": [
          "https://px-dcos.s3.amazonaws.com/v1/hadoop-px/bin_wrapper-0.0.1-py2.py3-none-any.whl"
        ]
      },
      "resource": {
        "assets": {
          "uris": {
            "jre-tar-gz": "https://downloads.mesosphere.com/java/jre-8u112-linux-x64-jce-unlimited.tar.gz",
            "libmesos-bundle-tar-gz": "https://downloads.mesosphere.com/libmesos-bundle/libmesos-bundle-1.9.0-rc2-1.2.0-rc2-1.tar.gz",
            "hdfs-tar-gz": "https://downloads.mesosphere.com/hdfs/assets/hadoop-2.6.0-cdh5.9.1-dcos.tar.gz",
            "bootstrap-zip": "https://px-dcos.s3.amazonaws.com/v1/hadoop-px/bootstrap.zip",
            "scheduler-zip": "https://px-dcos.s3.amazonaws.com/v1/hadoop-px/hdfs-scheduler.zip",
            "executor-zip": "https://px-dcos.s3.amazonaws.com/v1/hadoop-px/executor.zip"
          }
        },
        "images": {
          "icon-small": "https://downloads.mesosphere.com/hdfs/assets/icon-service-hdfs-small.png",
          "icon-medium": "https://downloads.mesosphere.com/hdfs/assets/icon-service-hdfs-medium.png",
          "icon-large": "https://downloads.mesosphere.com/hdfs/assets/icon-service-hdfs-large.png"
        },
        "cli": {
          "binaries": {
            "darwin": {
              "x86-64": {
                "contentHash": [
                  {
                    "algo": "sha256",
                    "value": "f415f5ef659e886c6cd3105c79c651c16779ef64fa58d42336ac544104aa20dc"
                  }
                ],
                "kind": "executable",
                "url": "https://px-dcos.s3.amazonaws.com/v1/hadoop-px/dcos-hdfs-darwin"
              }
            },
            "linux": {
              "x86-64": {
                "contentHash": [
                  {
                    "algo": "sha256",
                    "value": "ac945ebdb72c1dfa3f51a981be7d849f166ff3dd11af781c01c313e4c96b0171"
                  }
                ],
                "kind": "executable",
                "url": "https://px-dcos.s3.amazonaws.com/v1/hadoop-px/dcos-hdfs-linux"
              }
            },
            "windows": {
              "x86-64": {
                "contentHash": [
                  {
                    "algo": "sha256",
                    "value": "3ab5c4eb0f028681f128d1569127900684c6ea6fb520c89f7e7c462db248e6c1"
                  }
                ],
                "kind": "executable",
                "url": "https://px-dcos.s3.amazonaws.com/v1/hadoop-px/dcos-hdfs.exe"
              }
            }
          }
        }
      }
    }
  ]
}

@habibrosyad You need mention the content type as Content-Type: application/vnd.dcos.universe.repo+json;charset=utf-8;version=v3. I have put this file in my s3 bucket and the following command should work:

dcos package repo add --index=0 portworx-repo https://takirala-dev-in.s3.ap-south-1.amazonaws.com/hadoop-px-px-universe.json

from dcos-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.