Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10628

Less verbose output from bin/solr commands

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 7.1, 8.0
    • scripts and tools
    • None

    Description

      Creating a collection with bin/solr create today is too verbose:

      $ bin/solr create -c foo
      
      Connecting to ZooKeeper at localhost:9983 ...
      INFO  - 2017-05-08 09:06:54.409; org.apache.solr.client.solrj.impl.ZkClientClusterStateProvider; Cluster at localhost:9983 ready
      Uploading /Users/janhoy/git/lucene-solr/solr/server/solr/configsets/data_driven_schema_configs/conf for config foo to ZooKeeper at localhost:9983
      
      Creating new collection 'foo' using command:
      http://localhost:8983/solr/admin/collections?action=CREATE&name=foo&numShards=1&replicationFactor=1&maxShardsPerNode=1&collection.configName=foo
      
      {
        "responseHeader":{
          "status":0,
          "QTime":4178},
        "success":{"192.168.127.248:8983_solr":{
            "responseHeader":{
              "status":0,
              "QTime":2959},
            "core":"foo_shard1_replica1"}}}
      

      A normal user don't need all this info. Propose to move all the details to verbose mode (-V) and let the default be the following instead:

      $ bin/solr create -c foo
      Connecting to ZooKeeper at localhost:9983 ...
      Created collection 'foo' with 1 shard(s), 1 replica(s) using config-set 'data_driven_schema_configs'
      

      Error messages must of course still be verbose.

      Attachments

        1. updated_command_output.txt
          2 kB
          Jason Gerlowski
        2. SOLR-10628-loglevel-fix.patch
          38 kB
          Jason Gerlowski
        3. SOLR-10628-loglevel-fix_jan.patch
          3 kB
          Jan Høydahl
        4. SOLR-10628-loglevel-fix_jan.patch
          3 kB
          Jason Gerlowski
        5. SOLR-10628.patch
          10 kB
          Jason Gerlowski
        6. SOLR-10628.patch
          10 kB
          Jason Gerlowski
        7. SOLR-10628.patch
          39 kB
          Jason Gerlowski
        8. SOLR-10628.patch
          53 kB
          Jason Gerlowski
        9. SOLR-10628.patch
          56 kB
          Jan Høydahl
        10. solr_script_outputs.txt
          5 kB
          Jason Gerlowski

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              janhoy Jan Høydahl
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: