def export_data_as_hdfs_file(self, snippet, target_file, overwrite): db = self._get_db(snippet) handle = self._get_handle(snippet) max_rows = DOWNLOAD_ROW_LIMIT.get() upload(target_file, handle, self.request.user, db, self.request.fs, max_rows=max_rows) return '/filebrowser/view=%s' % target_file
def export_data_as_hdfs_file(self, snippet, target_file, overwrite): db = self._get_db(snippet, interpreter=self.interpreter) handle = self._get_handle(snippet) max_rows = DOWNLOAD_ROW_LIMIT.get() max_bytes = DOWNLOAD_BYTES_LIMIT.get() upload(target_file, handle, self.request.user, db, self.request.fs, max_rows=max_rows, max_bytes=max_bytes) return '/filebrowser/view=%s' % urllib_quote(urllib_quote(target_file.encode('utf-8'), safe=SAFE_CHARACTERS_URI_COMPONENTS)) # Quote twice, because of issue in the routing on client
def export_data_as_hdfs_file(self, snippet, target_file, overwrite): db = self._get_db(snippet, cluster=self.cluster) handle = self._get_handle(snippet) max_rows = DOWNLOAD_ROW_LIMIT.get() max_bytes = DOWNLOAD_BYTES_LIMIT.get() upload(target_file, handle, self.request.user, db, self.request.fs, max_rows=max_rows, max_bytes=max_bytes) return '/filebrowser/view=%s' % urllib.quote(urllib.quote(target_file.encode('utf-8'), safe='~@#$&()*!+=:;,.?/\'')) # Quote twice, because of issue in the routing on client