skale-me / skale

High performance distributed data processing engine
https://skale-me.github.io/skale
Apache License 2.0
397 stars 53 forks source link

Can we use other package with skale? #261

Closed guanMac closed 3 years ago

guanMac commented 5 years ago

Hi,

const querystring = require('querystring');
var sc = require('skale').context();

async function init() {
  let ds = sc.textFile('xxxx.txt').map(function(row) {
    return querystring.parse(row.split('    ')[3]);
  });
  let count = await ds.count();
  // next
}

function main() {
  init();
}

main();

when it has run ,it would throw ERROR :ReferenceError: querystring is not defined It confuses me. Can I use other package with skale ?

Expecting an answer.