Skip to content

Instantly share code, notes, and snippets.

View wizardxz's full-sized avatar

Zhong Xu wizardxz

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
# Monkey-patch Python's cookielib to fix bug @ http://bugs.python.org/issue5537 .
def monkey_patch_cookielib_time2isoz():
try:
cookielib.time2isoz(2**32)
except ValueError:
import datetime, _LWPCookieJar
def time2isoz(t=None):
if t is None:
dt = datetime.datetime.now()
#!/usr/bin/env python
import sys
def read_input(file):
for line in file:
yield float(line)
def main(separator='\t'):
data = read_input(sys.stdin)
16:34:38.223 [pool-8-thread-1] INFO c.l.m.filter.RestliLoggingFilter:56 - GET /entities/urn%3Ali%3Acorpuser%3Adatahub - get - 200 - 2ms
16:34:38.228 [I/O dispatcher 1] INFO c.l.m.k.e.ElasticsearchConnector:41 - Successfully feeded bulk request. Number of events: 1 Took time ms: -1
16:34:38.236 [I/O dispatcher 1] INFO c.l.m.k.e.ElasticsearchConnector:41 - Successfully feeded bulk request. Number of events: 1 Took time ms: -1
16:34:38.645 [ForkJoinPool.commonPool-worker-30] ERROR c.l.m.s.e.query.ESBrowseDAO:126 - Browse query failed: Elasticsearch exception [type=search_phase_execution_exception, reason=]
16:34:38.645 [ForkJoinPool.commonPool-worker-30] ERROR c.l.d.g.r.browse.BrowseResolver:60 - Failed to execute browse: entity type: DATASET, path: [prod, pinterest-hive], filters: null, start: 0, count: 10 Browse query failed:
16:34:38.645 [ForkJoinPool.commonPool-worker-30] ERROR c.l.d.g.e.DataHubDataFetcherExceptionHandler:21 - Failed to execute DataFetcher
java.util.concurrent.CompletionException: java.l
namespace com.linkedin.pinterest
import com.linkedin.common.Urn
/**
* Properties of an applied DataElement. For now, just an Urn. In the future we can extend this with other properties, e.g.
* propagation parameters.
*/
record DataElementAssociation {
/**
namespace com.linkedin.schema
import com.linkedin.common.GlobalTags
import com.linkedin.common.GlossaryTerms
import com.linkedin.pinterest.GenericDataElement
import com.linkedin.pinterest.DataElements
/**
* SchemaField to describe metadata related to dataset schema.
*/
namespace com.linkedin.pinterest
/**
* Related DataElement information
*/
@Aspect = {
"name": "dataElements"
}
record DataElements {
/**