-
Notifications
You must be signed in to change notification settings - Fork 343
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bugfix] Fix slow node crush in hive predictor #220
Conversation
|
CI PY3 Test Passed |
CI Test Passed |
easy_rec/python/utils/hive_utils.py
Outdated
""".format(str_fields, self.task_num, self.task_index) | ||
else: | ||
sql += """ | ||
where {} and hash(concat({}))%{}={} | ||
where {} and abs(hash(concat({})))%{}={} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where CAST(ROUND(rand() * self.task_num) AS BIGINT) = self.task_index
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where CAST(rand(1) * self.task_num) AS BIGINT) = self.task_index
drop ROUND and add random seed
res_path = os.path.join(self._hdfs_path, 'SUCCESS-%s' % id) | ||
if not gfile.Exists(res_path): | ||
time.sleep(10) | ||
self._check_worker_success(slice_num) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too much recursion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
CI PY3 Test Passed |
CI Test Passed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.