Member since 
    
	
		
		
		09-24-2015
	
	
	
	
	
	
	
	
	
	
	
	
	
	
			
      
                527
            
            
                Posts
            
        
                136
            
            
                Kudos Received
            
        
                19
            
            
                Solutions
            
        My Accepted Solutions
| Title | Views | Posted | 
|---|---|---|
| 2875 | 06-30-2017 03:15 PM | |
| 4341 | 10-14-2016 10:08 AM | |
| 9572 | 09-07-2016 06:04 AM | |
| 11612 | 08-26-2016 11:27 AM | |
| 1908 | 08-23-2016 02:09 PM | 
			
    
	
		
		
		10-28-2016
	
		
		08:10 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 Hi:  So what do you recommend me?, set JAVA_HOME to version 7 and restar the component¿  Thanks 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		10-27-2016
	
		
		09:08 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 ls -al /var/lib/smartsense/hst-server/keys/
total 16
drwxr-xr-x 3 root root 4096 Oct 27 09:08 .
drwxr-xr-x 4 root root 4096 Oct 27 09:08 ..
-rw-r--r-- 1 root root  780 Feb 26  2016 ca.config
drwx------ 3 root root 4096 Oct 27 09:08 db  ls -al /var/lib/smartsense/hst-agent/keys/
total 32
drwxr-xr-x 2 root root 4096 Oct 27 23:06 .
drwxr-xr-x 4 root root 4096 Oct 27 09:09 ..
-rw-r--r-- 1 root root 7128 Oct 27 09:09 ca.crt
-rw-r--r-- 1 root root 4188 Oct 27 09:09 xxxx.crt
-rw-r--r-- 1 root root  554 Oct 27 09:09 xxxx.csr
-rw-r--r-- 1 root root  916 Oct 27 09:09 xxxx.key
  after run hst reset-agent -q and restart services now its working.  Many Thanks 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		10-27-2016
	
		
		07:08 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 Hi:   I have resolved the problem, but I thing there is  A bug or somenthing, let my explain:  The V1=11.88 whe y type DoubleType or DecimalType doesnt work, but if I type StringType, is working, so... please could you confirm that is correct my test????  {"CAMPO1":"xxxx","CAMPO2":"xxx","VARIABLE":{"V1":"11.88"}}
schema = StructType([
StructField("CAMPO1", StringType(), True),
StructField("CAMPO2", StringType(), True),
StructField("VARIABLE", StructType([
StructField("V1", StringType(), True),
StructField("V2", StringType(), True),
StructField("V3", StringType(), True)]))
])
  thanks 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		10-27-2016
	
		
		05:37 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 I am on Python enviornment, I have translate the scala code to Python code like that, but doesnt WORK, please any suggestion?  schema = StructType([
StructField("CAMPO1", StringType(), True),
StructField("CAMPO2", StringType(), True),
StructField("VARIABLE", StructType([
StructField("V1", StringType(), True),
StructField("V2", DoubleType(), True),
StructField("V3", StringType(), True)]))
])
df1 = sqlContext.read.json("xxxx.json",schema).select('VARIABLE.V2').show()
+-----------------+
|V2               |
+-----------------+
|             null|
+-----------------
 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
			
    
	
		
		
		10-27-2016
	
		
		01:06 PM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 Hi.  How can i create the schema with 2 levels in a JSON in spark??  >>> df1.schema
StructType(List(StructField(CAMPO1,StringType,true),StructField(CAMPO2,StringType,true),StructType(List(StructField(VARIABLE,StringType,true),StructField(V1,StringType,true))),true))
  This code doesnt work:  schema = StructType([
StructField("CAMPO1", StringType(), True),
StructField("CAMPO2", StringType(), True),
StructField("VARIABLE.V1", StringType(), True)
])  The json i have is:  {"CAMPO1":"xxxx","CAMPO2":"xxx","VARIABLE":{"V1":"xxx"}}  please could you help me?  Many thanks 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
		
			
				
						
							Labels:
						
						
		
			
	
					
			
		
	
	
	
	
				
		
	
	
- Labels:
- 
						
							
		
			Apache Spark
			
    
	
		
		
		10-27-2016
	
		
		07:25 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 Hi:  After install smartsense to support, i cant start the services, there are somenthing wrong with the ssl certificates:  We have Centos 6 64 bits  Traceback (most recent call last):
  File "/usr/sbin/hst-agent.py", line 420, in <module>
    main(sys.argv)
  File "/usr/sbin/hst-agent.py", line 397, in main
    setup(options)
  File "/usr/sbin/hst-agent.py", line 323, in setup
    server_hostname = get_server_hostname(server, tries, try_sleep, options.quiet)
  File "/usr/sbin/hst-agent.py", line 107, in get_server_hostname
    hostname = validate_server_hostname(default_hostname, tries, try_sleep)
  File "/usr/sbin/hst-agent.py", line 125, in validate_server_hostname
    elif not register_agent(server_hostname):
  File "/usr/sbin/hst-agent.py", line 143, in register_agent
    if not server_api.register_agent(agent_version):
  File "/usr/hdp/share/hst/hst-agent/lib/hst_agent/ServerAPI.py", line 104, in register_agent
    content = self.call(request)
  File "/usr/hdp/share/hst/hst-agent/lib/hst_agent/ServerAPI.py", line 52, in call
    self.cachedconnect = security.CachedHTTPSConnection(self.config)
  File "/usr/hdp/share/hst/hst-agent/lib/hst_agent/security.py", line 111, in __init__
    self.connect()
  File "/usr/hdp/share/hst/hst-agent/lib/hst_agent/security.py", line 116, in connect
    self.httpsconn.connect()
  File "/usr/hdp/share/hst/hst-agent/lib/hst_agent/security.py", line 87, in connect
    raise err
ssl.SSLError: [Errno 1] _ssl.c:492: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed  Anny suggestion?? 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		
		
			
				
						
							Labels:
						
						
		
			
	
					
			
		
	
	
	
	
				
		
	
	
- Labels:
- 
						
							
		
			Hortonworks SmartSense
			
    
	
		
		
		10-26-2016
	
		
		07:13 AM
	
	
	
	
	
	
	
	
	
	
	
	
	
	
		
	
				
		
			
					
				
		
	
		
					
							 Finally it have work, the problem was the column was a String not a number,  thanks. 
						
					
					... View more
				
			
			
			
			
			
			
			
			
			
		 
        













