Show
Ignore:
Timestamp:
28.10.2016 14:44:21 (3 years ago)
Author:
davidb
Message:

_solr_url needs to be stored in class!

Location:
other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust/PagedJSON.java

    r30978 r30979  
    191191    { 
    192192        // "http://10.11.0.53:8983/solr/" 
    193         String post_url = "http://10.11.0.53:8983/solr/htrc-pd-ef/update"; 
    194              
     193        //String post_url = "http://10.11.0.53:8983/solr/htrc-pd-ef/update"; 
     194        String post_url = _solr_url; 
     195         
    195196        //String curl_popen = "curl -X POST -H 'Content-Type: application/json'"; 
    196197        //curl_popen += " 'http://10.11.0.53:8983/solr/htrc-pd-ef/update'"; 
  • other-projects/hathitrust/solr-extracted-features/trunk/src/main/java/org/hathitrust/PrepareForIngest.java

    r30977 r30979  
    2525        _input_dir = input_dir; 
    2626        _json_list_filename = (json_list_filename != null) ? json_list_filename : input_dir; 
     27 
     28        _solr_url   = solr_url; 
    2729        _output_dir = output_dir; 
    28         _verbosity = verbosity; 
     30        _verbosity  = verbosity; 
    2931    } 
    3032 
     
    4446        JavaRDD<String> json_list_data = jsc.textFile(_json_list_filename,NUM_PARTITIONS).cache(); 
    4547 
    46         PagedJSON paged_json = new PagedJSON(_input_dir,_solr_url, _output_dir,_verbosity); 
     48        PagedJSON paged_json = new PagedJSON(_input_dir, _solr_url,_output_dir,_verbosity); 
    4749        JavaRDD<String> json_ids = json_list_data.flatMap(paged_json).cache(); 
    4850