Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-16943

importing modules and eclcc/ecl run


    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.2.6
    • Component/s: ecl command, eclcc
    • Labels:


      I am not sure if this a bug or if a feature exists that am unaware, please kindly make changes to this ticket accordingly.

      I ran the following command on the local machine

      eclcc -legacy -I/data/hpcc/bocaprod/master -platform=thor -E a.ecl -o b.xml

      b.xml is the archive xml

      I tried to submit the job on thor

      ecl run -s prod_esp --port=8010 -u ananth_prod -pw **** thor400_20 b.xml -v

      The above command gave the following error

      Deploying ECL Archive b.xml

      wuid: W20170125-081704
      state: failed

      eclserver: /data/hpcc/bocaprod/master/BankruptcyV2/bk_test.ecl(1,11): Error C2081: Import names unknown module "ut"
      eclserver: a.ecl(1,27): Error C2171: Object 'bankruptcyv2' does not have a member named 'bk_test'
      eclserver: a.ecl(1,27): Error C2167: Unknown identifier "bk_test"
      3 error(s), 0 warning(s)

      ut module was imported but not used. So I manually modified the archive xml, to remove "import ut;" and ran the same command and it worked

      ecl run -s prod_esp --port=8010 -u ananth_prod -pw **** thor400_20 b.xml -v

      Deploying ECL Archive b.xml

      wuid: W20170125-081634
      state: compiled

      Running deployed workunit W20170125-081634
      <Dataset name='Result 1'>

      Question: is there a way to avoid this error, because we working on moving the code base from mysql repository to Git. The code works just fine when run against the eclserver on thor that is pointing to mysql repository. We want to be able to do the same when we move to Git.

      Please let me know if you need any further details.


          Issue Links



              • Assignee:
                ghalliday Gavin Halliday
                anandjun Anantha Venkatachalam
              • Votes:
                0 Vote for this issue
                7 Start watching this issue


                • Created: